]> git.proxmox.com Git - rustc.git/blob - src/test/ui/while-let.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / while-let.stderr
1 warning: irrefutable while-let pattern
2 --> $DIR/while-let.rs:7:13
3 |
4 LL | while let $p = $e $b
5 | ^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | / foo!(_a, 1, {
8 LL | | println!("irrefutable pattern");
9 LL | | });
10 | |_______- in this macro invocation
11 |
12 = note: `#[warn(irrefutable_let_patterns)]` on by default
13 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 warning: irrefutable while-let pattern
16 --> $DIR/while-let.rs:7:13
17 |
18 LL | while let $p = $e $b
19 | ^^^^^^^^^^^^^^^^^^^^
20 ...
21 LL | / bar!(_a, 1, {
22 LL | | println!("irrefutable pattern");
23 LL | | });
24 | |_______- in this macro invocation
25 |
26 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
27
28 warning: irrefutable while-let pattern
29 --> $DIR/while-let.rs:27:5
30 |
31 LL | / while let _a = 1 {
32 LL | | println!("irrefutable pattern");
33 LL | | break;
34 LL | | }
35 | |_____^
36
37 warning: 3 warnings emitted
38