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

39 lines
1.1 KiB
Text
Raw Normal View History

warning: irrefutable `while let` pattern
--> $DIR/while-let.rs:7:13
2018-08-08 14:28:26 +02:00
|
LL | while let $p = $e $b
2019-12-06 22:41:10 +01: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
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
warning: irrefutable `while let` pattern
--> $DIR/while-let.rs:7:13
2018-08-08 14:28:26 +02:00
|
LL | while let $p = $e $b
2019-12-06 22:41:10 +01:00
| ^^^^^^^^^^^^^^^^^^^^
...
LL | / bar!(_a, 1, {
LL | | println!("irrefutable pattern");
LL | | });
| |_______- in this macro invocation
|
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
warning: irrefutable `while let` pattern
--> $DIR/while-let.rs:27:5
|
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
warning: 3 warnings emitted