]> git.proxmox.com Git - rustc.git/blob - 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
1 error[E0308]: mismatched types
2 --> $DIR/loop-labeled-break-value.rs:3:29
3 |
4 LL | let _: i32 = loop { break };
5 | ^^^^^
6 | |
7 | expected `i32`, found `()`
8 | help: give it a value of the expected type: `break 42`
9
10 error[E0308]: mismatched types
11 --> $DIR/loop-labeled-break-value.rs:6:37
12 |
13 LL | let _: i32 = 'inner: loop { break 'inner };
14 | ^^^^^^^^^^^^
15 | |
16 | expected `i32`, found `()`
17 | help: give it a value of the expected type: `break 'inner 42`
18
19 error[E0308]: mismatched types
20 --> $DIR/loop-labeled-break-value.rs:9:45
21 |
22 LL | let _: i32 = 'inner2: loop { loop { break 'inner2 } };
23 | ^^^^^^^^^^^^^
24 | |
25 | expected `i32`, found `()`
26 | help: give it a value of the expected type: `break 'inner2 42`
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0308`.