1 #![allow(unused, dead_code)]
4 return 'label: loop { break 'label 42; };
8 loop { break 'label: loop { break 'label 42; }; }
9 //~^ ERROR: parentheses are required around this expression to avoid confusion
10 //~| HELP: wrap the expression in parentheses
16 //~^ WARNING: this labeled break expression is easy to confuse with an unlabeled break
18 //~^ HELP: wrap this expression in parentheses
22 break 'label2 'inner: loop { break 42; };
23 // no warnings or errors here
28 // Regression test for issue #86948, as resolved in #87026:
29 let a = 'first_loop: loop {
33 break 'inner_loop: loop {
34 //~^ ERROR: parentheses are required around this expression to avoid confusion
35 //~| HELP: wrap the expression in parentheses