1 error[E0308]: mismatched types
2 --> $DIR/issue-13359.rs:6:9
4 LL | foo(1*(1 as isize));
5 | --- ^^^^^^^^^^^^^^ expected `i16`, found `isize`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/issue-13359.rs:1:4
12 LL | fn foo(_s: i16) { }
14 help: you can convert an `isize` to an `i16` and panic if the converted value doesn't fit
16 LL | foo((1*(1 as isize)).try_into().unwrap());
17 | + +++++++++++++++++++++
19 error[E0308]: mismatched types
20 --> $DIR/issue-13359.rs:10:9
22 LL | bar(1*(1 as usize));
23 | --- ^^^^^^^^^^^^^^ expected `u32`, found `usize`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/issue-13359.rs:3:4
30 LL | fn bar(_s: u32) { }
32 help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
34 LL | bar((1*(1 as usize)).try_into().unwrap());
35 | + +++++++++++++++++++++
37 error: aborting due to 2 previous errors
39 For more information about this error, try `rustc --explain E0308`.