Move #[allow(unreachable_code)] in tests/run-pass/generator.rs

This commit is contained in:
hyd-dev
2021-08-26 16:16:43 +08:00
parent 08ca5606ab
commit 7301fe118a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
f66e825f73d2bd7f8a763b723983850f891985b0
c4be230b4a30eb74e3a3908455731ebc2f731d3d
+1 -1
View File
@@ -93,8 +93,8 @@ fn never() -> Never {
if b { return; }
#[allow(unused)]
let x = never();
yield 2;
#[allow(unreachable_code)]
yield 2;
drop(x);
});