2019-01-12 03:10:59 +00:00
|
|
|
warning: irrefutable while-let pattern
|
2019-09-01 17:30:19 -04:00
|
|
|
--> $DIR/while-let.rs:7:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | while let $p = $e $b
|
2019-12-06 22:41:10 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2019-01-12 03:10:59 +00:00
|
|
|
...
|
2019-09-01 17:30:19 -04:00
|
|
|
LL | / foo!(_a, 1, {
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | | println!("irrefutable pattern");
|
|
|
|
LL | | });
|
|
|
|
| |_______- in this macro invocation
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-07-16 22:17:38 +02:00
|
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-01-12 03:10:59 +00:00
|
|
|
warning: irrefutable while-let pattern
|
2019-09-01 17:30:19 -04:00
|
|
|
--> $DIR/while-let.rs:7:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | while let $p = $e $b
|
2019-12-06 22:41:10 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2019-01-12 03:10:59 +00:00
|
|
|
...
|
2019-09-01 17:30:19 -04:00
|
|
|
LL | / bar!(_a, 1, {
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | | println!("irrefutable pattern");
|
|
|
|
LL | | });
|
|
|
|
| |_______- in this macro invocation
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-01-12 03:10:59 +00:00
|
|
|
warning: irrefutable while-let pattern
|
2019-10-24 00:00:00 +00:00
|
|
|
--> $DIR/while-let.rs:27:5
|
2019-01-12 03:10:59 +00:00
|
|
|
|
|
2019-09-01 17:30:19 -04:00
|
|
|
LL | / while let _a = 1 {
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | | println!("irrefutable pattern");
|
2019-01-12 08:59:12 +01:00
|
|
|
LL | | break;
|
2019-01-12 03:10:59 +00:00
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-08-08 14:28:26 +02:00
|
|
|
|