]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-59819.stderr
Rollup merge of #107632 - ameknite:issue-107622-fix, r=jyn514
[rust.git] / tests / ui / suggestions / issue-59819.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-59819.rs:28:18
3    |
4 LL |     let y: i32 = x;
5    |            ---   ^ expected `i32`, found `Foo`
6    |            |
7    |            expected due to this
8    |
9 help: consider dereferencing the type
10    |
11 LL |     let y: i32 = *x;
12    |                  +
13
14 error[E0308]: mismatched types
15   --> $DIR/issue-59819.rs:30:18
16    |
17 LL |     let b: i32 = a;
18    |            ---   ^ expected `i32`, found `&{integer}`
19    |            |
20    |            expected due to this
21    |
22 help: consider dereferencing the borrow
23    |
24 LL |     let b: i32 = *a;
25    |                  +
26
27 error[E0308]: mismatched types
28   --> $DIR/issue-59819.rs:34:21
29    |
30 LL |     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
36 error: aborting due to 3 previous errors
37
38 For more information about this error, try `rustc --explain E0308`.