2019-04-21 12:49:02 -05:00
|
|
|
error[E0308]: mismatched types
|
2019-04-21 14:00:32 -05:00
|
|
|
--> $DIR/issue-59819.rs:19:18
|
2019-04-21 12:49:02 -05:00
|
|
|
|
|
|
|
|
LL | let y: i32 = x;
|
2019-04-21 14:00:32 -05:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| expected i32, found struct `Foo`
|
|
|
|
| help: consider dereferencing the type: `*x`
|
2019-04-21 12:49:02 -05:00
|
|
|
|
|
|
|
|
= note: expected type `i32`
|
|
|
|
found type `Foo`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-04-21 14:00:32 -05:00
|
|
|
--> $DIR/issue-59819.rs:21:18
|
2019-04-21 12:49:02 -05:00
|
|
|
|
|
|
|
|
LL | let b: i32 = a;
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| expected i32, found &{integer}
|
|
|
|
| help: consider dereferencing the borrow: `*a`
|
|
|
|
|
|
|
|
|
= note: expected type `i32`
|
|
|
|
found type `&{integer}`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|