fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0308]: mismatched types 2 --> $DIR/issue-13359.rs:6:9 3 | 4LL | foo(1*(1 as isize)); 5 | ^^^^^^^^^^^^^^ expected `i16`, found `isize` 6 | 7help: you can convert an `isize` to `i16` and panic if the converted value wouldn't fit 8 | 9LL | foo((1*(1 as isize)).try_into().unwrap()); 10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 12error[E0308]: mismatched types 13 --> $DIR/issue-13359.rs:10:9 14 | 15LL | bar(1*(1 as usize)); 16 | ^^^^^^^^^^^^^^ expected `u32`, found `usize` 17 | 18help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit 19 | 20LL | bar((1*(1 as usize)).try_into().unwrap()); 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0308`.