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