fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: parentheses are required around this expression to avoid confusion with a labeled break expression 2 --> $DIR/lifetime_starts_expressions.rs:8:18 3 | 4LL | loop { break 'label: loop { break 'label 42; }; } 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7help: wrap the expression in parentheses 8 | 9LL | loop { break ('label: loop { break 'label 42; }); } 10 | + + 11 12error: parentheses are required around this expression to avoid confusion with a labeled break expression 13 --> $DIR/lifetime_starts_expressions.rs:33:15 14 | 15LL | break 'inner_loop: loop { 16 | _______________^ 17LL | | 18LL | | 19LL | | break 'inner_loop 1; 20LL | | }; 21 | |_________^ 22 | 23help: wrap the expression in parentheses 24 | 25LL ~ break ('inner_loop: loop { 26LL | 27LL | 28LL | break 'inner_loop 1; 29LL ~ }); 30 | 31 32warning: this labeled break expression is easy to confuse with an unlabeled break with a labeled value expression 33 --> $DIR/lifetime_starts_expressions.rs:15:9 34 | 35LL | / break 'label 36LL | | 37LL | | loop { break 42; }; 38 | |______________________________^ 39 | 40 = note: `#[warn(break_with_label_and_loop)]` on by default 41help: wrap this expression in parentheses 42 | 43LL | (loop { break 42; }); 44 | + + 45 46error: aborting due to 2 previous errors; 1 warning emitted 47