Skip to content

Commit 33a67c6

Browse files
author
hyd-dev
committed
Add #[allow(unreachable_code)] to drop(x) in tests/run-pass/generator.rs
1 parent 94ae910 commit 33a67c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
73d96b090bb68065cd3a469b27cbd568e39bf0e7
1+
f66e825f73d2bd7f8a763b723983850f891985b0

tests/run-pass/generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ fn basic() {
9494
#[allow(unused)]
9595
let x = never();
9696
yield 2;
97+
#[allow(unreachable_code)]
9798
drop(x);
9899
});
99100

0 commit comments

Comments
 (0)