1 warning: irrefutable `while let` pattern
2 --> $DIR/while-let.rs:7:19
4 LL | while let $p = $e $b
8 LL | | println!("irrefutable pattern");
10 | |_______- in this macro invocation
12 = note: `#[warn(irrefutable_let_patterns)]` on by default
13 = note: this pattern will always match, so the loop will never exit
14 = help: consider instead using a `loop { ... }` with a `let` inside it
15 = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
17 warning: irrefutable `while let` pattern
18 --> $DIR/while-let.rs:7:19
20 LL | while let $p = $e $b
24 LL | | println!("irrefutable pattern");
26 | |_______- in this macro invocation
28 = note: this pattern will always match, so the loop will never exit
29 = help: consider instead using a `loop { ... }` with a `let` inside it
30 = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
32 warning: irrefutable `while let` pattern
33 --> $DIR/while-let.rs:27:11
35 LL | while let _a = 1 {
38 = note: this pattern will always match, so the loop will never exit
39 = help: consider instead using a `loop { ... }` with a `let` inside it
41 warning: 3 warnings emitted