]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/match-bindings.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / generator / match-bindings.stderr
1 warning: unused generator that must be used
2   --> $DIR/match-bindings.rs:12:5
3    |
4 LL | /     || {
5 LL | |         loop {
6 LL | |             if let true = true {
7 LL | |                 match Enum::A(String::new()) {
8 ...  |
9 LL | |         }
10 LL | |     };
11    | |_____^
12    |
13    = note: generators are lazy and do nothing unless resumed
14    = note: `#[warn(unused_must_use)]` on by default
15
16 warning: 1 warning emitted
17