diff options
Diffstat (limited to 'tests/ui/generator/yield-in-initializer.stderr')
-rw-r--r-- | tests/ui/generator/yield-in-initializer.stderr | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/ui/generator/yield-in-initializer.stderr b/tests/ui/generator/yield-in-initializer.stderr deleted file mode 100644 index ed14a2e32..000000000 --- a/tests/ui/generator/yield-in-initializer.stderr +++ /dev/null @@ -1,17 +0,0 @@ -warning: unused generator that must be used - --> $DIR/yield-in-initializer.rs:6:5 - | -LL | / static || { -LL | | loop { -LL | | // Test that `opt` is not live across the yield, even when borrowed in a loop -LL | | // See https://github.com/rust-lang/rust/issues/52792 -... | -LL | | } -LL | | }; - | |_____^ - | - = note: generators are lazy and do nothing unless resumed - = note: `#[warn(unused_must_use)]` on by default - -warning: 1 warning emitted - |