]> git.lizzy.rs Git - rust.git/blob - tests/ui/tail-typeck.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / tail-typeck.stderr
1 error[E0308]: mismatched types
2   --> $DIR/tail-typeck.rs:3:26
3    |
4 LL | fn f() -> isize { return g(); }
5    |           -----          ^^^ expected `isize`, found `usize`
6    |           |
7    |           expected `isize` because of return type
8    |
9 help: you can convert a `usize` to an `isize` and panic if the converted value doesn't fit
10    |
11 LL | fn f() -> isize { return g().try_into().unwrap(); }
12    |                             ++++++++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.