]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closures-type-mismatch.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/unboxed-closures-type-mismatch.rs:5:15
b7449926 3 |
532ac7d7 4LL | let z = f(1_usize, 2);
60c5eb7d 5 | ^^^^^^^ expected `isize`, found `usize`
e74abb32 6 |
48663c56
XL
7help: change the type of the numeric literal from `usize` to `isize`
8 |
9LL | let z = f(1_isize, 2);
94222f64 10 | ~~~~~~~
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.