os-rust/src/test/ui/while-let.stderr

34 lines
805 B
Text
Raw Normal View History

warning: irrefutable while-let pattern
--> $DIR/while-let.rs:6:13
2018-08-08 14:28:26 +02:00
|
LL | while let $p = $e $b
| ^^^^^
...
2019-03-09 15:03:44 +03:00
LL | / foo!(a, 1, {
LL | | println!("irrefutable pattern");
LL | | });
| |_______- in this macro invocation
2018-08-08 14:28:26 +02:00
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
2018-08-08 14:28:26 +02:00
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:6:13
2018-08-08 14:28:26 +02:00
|
LL | while let $p = $e $b
| ^^^^^
...
2019-03-09 15:03:44 +03:00
LL | / bar!(a, 1, {
LL | | println!("irrefutable pattern");
LL | | });
| |_______- in this macro invocation
2018-08-08 14:28:26 +02:00
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:24:5
|
2019-03-09 15:03:44 +03:00
LL | / while let a = 1 {
LL | | println!("irrefutable pattern");
2019-01-12 08:59:12 +01:00
LL | | break;
LL | | }
| |_____^
2018-08-08 14:28:26 +02:00