2021-02-17 19:26:38 +09:00
warning: irrefutable `while let` pattern
2021-11-14 14:38:42 -03:00
--> $DIR/while-let-2.rs:7:19
2018-08-08 14:28:26 +02:00
|
2019-01-12 03:10:59 +00:00
LL | while let $p = $e $b
2021-08-08 11:49:13 -03: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 | | });
2021-10-14 13:28:28 -05:00
| |______- in this macro invocation
2018-08-08 14:28:26 +02:00
|
2020-12-05 13:12:39 -08:00
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a `loop { ... }` with a `let` inside it
2022-09-18 19:55:36 +04:00
= note: `#[warn(irrefutable_let_patterns)]` on by default
2021-02-13 14:52:25 -05:00
= note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
2021-02-17 19:26:38 +09:00
warning: irrefutable `while let` pattern
2021-11-14 14:38:42 -03:00
--> $DIR/while-let-2.rs:7:19
2018-08-08 14:28:26 +02:00
|
2019-01-12 03:10:59 +00:00
LL | while let $p = $e $b
2021-08-08 11:49:13 -03: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 | | });
2021-10-14 13:28:28 -05:00
| |______- in this macro invocation
2019-12-16 15:56:47 +02:00
|
2020-12-05 13:12:39 -08:00
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a `loop { ... }` with a `let` inside it
2022-06-20 19:25:52 -07:00
= note: this warning originates in the macro `foo` which comes from the expansion of the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
2021-02-17 19:26:38 +09:00
warning: irrefutable `while let` pattern
2021-11-14 14:38:42 -03:00
--> $DIR/while-let-2.rs:27:11
2019-01-12 03:10:59 +00:00
|
2021-08-08 11:49:13 -03:00
LL | while let _a = 1 {
| ^^^^^^^^^^
2020-12-05 13:12:39 -08:00
|
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a `loop { ... }` with a `let` inside it
2018-08-08 14:28:26 +02:00
2020-03-11 16:30:09 +01:00
warning: 3 warnings emitted