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