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

34 lines
896 B
Plaintext
Raw Normal View History

warning: irrefutable while-let pattern
--> $DIR/while-let.rs:6:13
2018-08-08 07:28:26 -05: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
|
= note: #[warn(irrefutable_let_patterns)] on by default
2018-08-08 07:28:26 -05:00
warning: irrefutable while-let pattern
--> $DIR/while-let.rs:6:13
2018-08-08 07:28:26 -05: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
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;
LL | | }
| |_____^
2018-08-08 07:28:26 -05:00