fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0308]: mismatched types 2 --> $DIR/tutorial-suffix-inference-test.rs:9:18 3 | 4LL | identity_u16(x); 5 | ^ 6 | | 7 | expected `u16`, found `u8` 8 | help: you can convert an `u8` to `u16`: `x.into()` 9 10error[E0308]: mismatched types 11 --> $DIR/tutorial-suffix-inference-test.rs:12:18 12 | 13LL | identity_u16(y); 14 | ^ expected `u16`, found `i32` 15 | 16help: you can convert an `i32` to `u16` and panic if the converted value wouldn't fit 17 | 18LL | identity_u16(y.try_into().unwrap()); 19 | ^^^^^^^^^^^^^^^^^^^^^ 20 21error[E0308]: mismatched types 22 --> $DIR/tutorial-suffix-inference-test.rs:21:18 23 | 24LL | identity_u16(a); 25 | ^ expected `u16`, found `isize` 26 | 27help: you can convert an `isize` to `u16` and panic if the converted value wouldn't fit 28 | 29LL | identity_u16(a.try_into().unwrap()); 30 | ^^^^^^^^^^^^^^^^^^^^^ 31 32error: aborting due to 3 previous errors 33 34For more information about this error, try `rustc --explain E0308`.