rust/src/test/ui/while-let.stderr
Tomasz Miąsko f6c2c4dc43 Update error annotations positions
Since 8ec9d7242c, in the case of a local
macro expansion, the errors are now matched to macro definition
location. Update test cases accordingly.
2019-11-03 10:20:11 +01:00

33 lines
808 B
Text

warning: irrefutable while-let pattern
--> $DIR/while-let.rs:7:13
|
LL | while let $p = $e $b
| ^^^^^
...
LL | / foo!(_a, 1, {
LL | | println!("irrefutable pattern");
LL | | });
| |_______- in this macro invocation
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:7:13
|
LL | while let $p = $e $b
| ^^^^^
...
LL | / bar!(_a, 1, {
LL | | println!("irrefutable pattern");
LL | | });
| |_______- in this macro invocation
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:27:5
|
LL | / while let _a = 1 {
LL | | println!("irrefutable pattern");
LL | | break;
LL | | }
| |_____^