2019-01-11 21:10:59 -06:00
|
|
|
warning: irrefutable while-let pattern
|
|
|
|
--> $DIR/while-let.rs:6:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-11 21:10:59 -06:00
|
|
|
LL | while let $p = $e $b
|
|
|
|
| ^^^^^
|
|
|
|
...
|
|
|
|
LL | / foo!(a, 1, { //~ WARN irrefutable while-let
|
|
|
|
LL | | println!("irrefutable pattern");
|
|
|
|
LL | | });
|
|
|
|
| |_______- in this macro invocation
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-11 21:10:59 -06:00
|
|
|
= note: #[warn(irrefutable_let_patterns)] on by default
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-11 21:10:59 -06:00
|
|
|
warning: irrefutable while-let pattern
|
|
|
|
--> $DIR/while-let.rs:6:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-11 21:10:59 -06:00
|
|
|
LL | while let $p = $e $b
|
|
|
|
| ^^^^^
|
|
|
|
...
|
|
|
|
LL | / bar!(a, 1, { //~ WARN irrefutable while-let
|
|
|
|
LL | | println!("irrefutable pattern");
|
|
|
|
LL | | });
|
|
|
|
| |_______- in this macro invocation
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-11 21:10:59 -06:00
|
|
|
warning: irrefutable while-let pattern
|
|
|
|
--> $DIR/while-let.rs:24:5
|
|
|
|
|
|
|
|
|
LL | / while let a = 1 { //~ WARN irrefutable while-let
|
|
|
|
LL | | println!("irrefutable pattern");
|
2019-01-12 01:59:12 -06:00
|
|
|
LL | | break;
|
2019-01-11 21:10:59 -06:00
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-08-08 07:28:26 -05:00
|
|
|
|