]> git.proxmox.com Git - rustc.git/blame - src/test/ui/tail-typeck.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / tail-typeck.stderr
CommitLineData
8faf50e0 1error[E0308]: mismatched types
0731742a 2 --> $DIR/tail-typeck.rs:3:26
8faf50e0 3 |
b7449926 4LL | fn f() -> isize { return g(); }
60c5eb7d 5 | ----- ^^^ expected `isize`, found `usize`
9fa01778
XL
6 | |
7 | expected `isize` because of return type
60c5eb7d
XL
8 |
9help: you can convert an `usize` to `isize` and panic if the converted value wouldn't fit
10 |
11LL | fn f() -> isize { return g().try_into().unwrap(); }
12 | ^^^^^^^^^^^^^^^^^^^^^^^
8faf50e0
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0308`.