]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-87812.stderr
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
[rust.git] / src / test / ui / parser / issues / issue-87812.stderr
1 error: this labeled break expression is easy to confuse with an unlabeled break with a labeled value expression
2   --> $DIR/issue-87812.rs:6:13
3    |
4 LL |             break '_l $f;
5    |             ^^^^^^^^^^^^
6 ...
7 LL |     let x = foo!({ 3 });
8    |             ----------- in this macro invocation
9    |
10 note: the lint level is defined here
11   --> $DIR/issue-87812.rs:1:9
12    |
13 LL | #![deny(break_with_label_and_loop)]
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
15    = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
16 help: wrap this expression in parentheses
17    |
18 LL |             break '_l ($f);
19    |                       +  +
20
21 error: aborting due to previous error
22