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