2019-01-11 21:10:59 -06:00
|
|
|
error: irrefutable if-let pattern
|
|
|
|
--> $DIR/deny-irrefutable-let-patterns.rs:4:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | if let _ = 5 {}
|
2019-01-11 21:10:59 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2019-01-11 21:10:59 -06:00
|
|
|
--> $DIR/deny-irrefutable-let-patterns.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(irrefutable_let_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: irrefutable while-let pattern
|
|
|
|
--> $DIR/deny-irrefutable-let-patterns.rs:6:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | / while let _ = 5 {
|
2019-01-11 21:10:59 -06:00
|
|
|
LL | | break;
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|