]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-bad-block-type.stderr
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / ui / fn / fn-bad-block-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/fn-bad-block-type.rs:3:19
3    |
4 LL | fn f() -> isize { true }
5    |           -----   ^^^^ expected `isize`, found `bool`
6    |           |
7    |           expected `isize` because of return type
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0308`.