]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / unboxed-closures / unboxed-closures-type-mismatch.stderr
1 error[E0308]: mismatched types
2   --> $DIR/unboxed-closures-type-mismatch.rs:5:15
3    |
4 LL |     let z = f(1_usize, 2);
5    |               ^^^^^^^ expected `isize`, found `usize`
6    |
7 help: change the type of the numeric literal from `usize` to `isize`
8    |
9 LL |     let z = f(1_isize, 2);
10    |                 ~~~~~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.