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