1 error[E0308]: mismatched types
2 --> $DIR/tutorial-suffix-inference-test.rs:9:18
5 | ------------ ^ expected `u16`, found `u8`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/tutorial-suffix-inference-test.rs:6:8
12 LL | fn identity_u16(n: u16) -> u16 { n }
14 help: you can convert a `u8` to a `u16`
16 LL | identity_u16(x.into());
19 error[E0308]: mismatched types
20 --> $DIR/tutorial-suffix-inference-test.rs:12:18
23 | ------------ ^ expected `u16`, found `i32`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/tutorial-suffix-inference-test.rs:6:8
30 LL | fn identity_u16(n: u16) -> u16 { n }
32 help: you can convert an `i32` to a `u16` and panic if the converted value doesn't fit
34 LL | identity_u16(y.try_into().unwrap());
35 | ++++++++++++++++++++
37 error[E0308]: mismatched types
38 --> $DIR/tutorial-suffix-inference-test.rs:21:18
41 | ------------ ^ expected `u16`, found `isize`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/tutorial-suffix-inference-test.rs:6:8
48 LL | fn identity_u16(n: u16) -> u16 { n }
50 help: you can convert an `isize` to a `u16` and panic if the converted value doesn't fit
52 LL | identity_u16(a.try_into().unwrap());
53 | ++++++++++++++++++++
55 error: aborting due to 3 previous errors
57 For more information about this error, try `rustc --explain E0308`.