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