]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/yield-in-initializer.stderr
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
[rust.git] / src / test / ui / generator / yield-in-initializer.stderr
1 warning: unused generator that must be used
2   --> $DIR/yield-in-initializer.rs:6:5
3    |
4 LL | /     static || {
5 LL | |         loop {
6 LL | |             // Test that `opt` is not live across the yield, even when borrowed in a loop
7 LL | |             // See https://github.com/rust-lang/rust/issues/52792
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