]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tutorial-suffix-inference-test.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / tutorial-suffix-inference-test.stderr
1 error[E0308]: mismatched types
2   --> $DIR/tutorial-suffix-inference-test.rs:19:18
3    |
4 LL |     identity_u16(x);
5    |                  ^ expected u16, found u8
6 help: you can cast an `u8` to `u16`, which will zero-extend the source value
7    |
8 LL |     identity_u16(x.into());
9    |                  ^^^^^^^^
10
11 error[E0308]: mismatched types
12   --> $DIR/tutorial-suffix-inference-test.rs:22:18
13    |
14 LL |     identity_u16(y);
15    |                  ^ expected u16, found i32
16
17 error[E0308]: mismatched types
18   --> $DIR/tutorial-suffix-inference-test.rs:31:18
19    |
20 LL |     identity_u16(a);
21    |                  ^ expected u16, found isize
22
23 error: aborting due to 3 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.