fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-59819.rs:28:18 3 | 4LL | let y: i32 = x; 5 | --- ^ expected `i32`, found `Foo` 6 | | 7 | expected due to this 8 | 9help: consider dereferencing the type 10 | 11LL | let y: i32 = *x; 12 | + 13 14error[E0308]: mismatched types 15 --> $DIR/issue-59819.rs:30:18 16 | 17LL | let b: i32 = a; 18 | --- ^ expected `i32`, found `&{integer}` 19 | | 20 | expected due to this 21 | 22help: consider dereferencing the borrow 23 | 24LL | let b: i32 = *a; 25 | + 26 27error[E0308]: mismatched types 28 --> $DIR/issue-59819.rs:34:21 29 | 30LL | let g: String = f; 31 | ------ ^- help: try using a conversion method: `.to_string()` 32 | | | 33 | | expected `String`, found `Bar` 34 | expected due to this 35 36error: aborting due to 3 previous errors 37 38For more information about this error, try `rustc --explain E0308`.