]> git.proxmox.com Git - rustc.git/blame - src/test/ui/loops/loop-labeled-break-value.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / loops / loop-labeled-break-value.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/loop-labeled-break-value.rs:3:29
b7449926 3 |
532ac7d7 4LL | let _: i32 = loop { break };
416331ca
XL
5 | ^^^^^
6 | |
60c5eb7d 7 | expected `i32`, found `()`
416331ca 8 | help: give it a value of the expected type: `break 42`
b7449926
XL
9
10error[E0308]: mismatched types
0731742a 11 --> $DIR/loop-labeled-break-value.rs:6:37
b7449926 12 |
532ac7d7 13LL | let _: i32 = 'inner: loop { break 'inner };
416331ca
XL
14 | ^^^^^^^^^^^^
15 | |
60c5eb7d 16 | expected `i32`, found `()`
416331ca 17 | help: give it a value of the expected type: `break 'inner 42`
b7449926
XL
18
19error[E0308]: mismatched types
0731742a 20 --> $DIR/loop-labeled-break-value.rs:9:45
b7449926 21 |
532ac7d7 22LL | let _: i32 = 'inner2: loop { loop { break 'inner2 } };
416331ca
XL
23 | ^^^^^^^^^^^^^
24 | |
60c5eb7d 25 | expected `i32`, found `()`
416331ca 26 | help: give it a value of the expected type: `break 'inner2 42`
b7449926
XL
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0308`.