2019-04-21 18:49:02 +01:00
|
|
|
error[E0308]: mismatched types
|
2019-04-22 10:16:47 +01:00
|
|
|
--> $DIR/issue-59819.rs:28:18
|
2019-04-21 18:49:02 +01:00
|
|
|
|
|
|
|
|
LL | let y: i32 = x;
|
2023-01-02 18:00:33 -08:00
|
|
|
| --- ^ expected `i32`, found `Foo`
|
2021-06-28 11:22:47 -07:00
|
|
|
| |
|
2019-11-18 21:00:24 -08:00
|
|
|
| expected due to this
|
2021-06-28 11:22:47 -07:00
|
|
|
|
|
|
|
|
help: consider dereferencing the type
|
|
|
|
|
|
|
|
|
LL | let y: i32 = *x;
|
2021-06-21 19:07:19 -07:00
|
|
|
| +
|
2019-04-21 18:49:02 +01:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-04-22 10:16:47 +01:00
|
|
|
--> $DIR/issue-59819.rs:30:18
|
2019-04-21 18:49:02 +01:00
|
|
|
|
|
|
|
|
LL | let b: i32 = a;
|
2021-06-28 11:22:47 -07:00
|
|
|
| --- ^ expected `i32`, found `&{integer}`
|
|
|
|
| |
|
2019-11-18 21:00:24 -08:00
|
|
|
| expected due to this
|
2021-06-28 11:22:47 -07:00
|
|
|
|
|
|
|
|
help: consider dereferencing the borrow
|
|
|
|
|
|
|
|
|
LL | let b: i32 = *a;
|
2021-06-21 19:07:19 -07:00
|
|
|
| +
|
2019-04-21 18:49:02 +01:00
|
|
|
|
2019-04-22 10:16:47 +01:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-59819.rs:34:21
|
|
|
|
|
|
|
|
|
LL | let g: String = f;
|
2021-06-28 11:22:47 -07:00
|
|
|
| ------ ^- help: try using a conversion method: `.to_string()`
|
2019-11-18 21:00:24 -08:00
|
|
|
| | |
|
2023-01-02 18:00:33 -08:00
|
|
|
| | expected `String`, found `Bar`
|
2019-11-18 21:00:24 -08:00
|
|
|
| expected due to this
|
2019-04-22 10:16:47 +01:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-04-21 18:49:02 +01:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|