]> git.proxmox.com Git - rustc.git/blame - tests/ui/type/type-error-break-tail.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type / type-error-break-tail.stderr
CommitLineData
60c5eb7d
XL
1error[E0308]: mismatched types
2 --> $DIR/type-error-break-tail.rs:3:20
3 |
4LL | fn loop_ending() -> i32 {
5 | --- expected `i32` because of return type
6LL | loop {
7LL | if false { break; }
8 | ^^^^^
9 | |
10 | expected `i32`, found `()`
11 | help: give it a value of the expected type: `break 42`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0308`.