1 error[E0308]: mismatched types
2 --> $DIR/unboxed-closures-type-mismatch.rs:5:15
4 LL | let z = f(1_usize, 2);
5 | - ^^^^^^^ expected `isize`, found `usize`
7 | arguments to this function are incorrect
9 note: closure defined here
10 --> $DIR/unboxed-closures-type-mismatch.rs:4:17
12 LL | let mut f = |x: isize, y: isize| -> isize { x + y };
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 help: change the type of the numeric literal from `usize` to `isize`
16 LL | let z = f(1_isize, 2);
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.