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
No known key found for this signature in database
GPG Key ID: 74FA7FD5B8DA14B8
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
f66e825f73d2bd7f8a763b723983850f891985b0
c4be230b4a30eb74e3a3908455731ebc2f731d3d

View File

@ -93,8 +93,8 @@ fn basic() {
if b { return; }
#[allow(unused)]
let x = never();
yield 2;
#[allow(unreachable_code)]
yield 2;
drop(x);
});