blob: 348925aa9702c906e1671a3dff11323504506b8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:6: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:6: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:24:5
|
LL | / while let a = 1 {
LL | | println!("irrefutable pattern");
LL | | break;
LL | | }
| |_____^
|