Move #[allow(unreachable_code)] in tests/run-pass/generator.rs
This commit is contained in:
parent
08ca5606ab
commit
7301fe118a
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
f66e825f73d2bd7f8a763b723983850f891985b0
|
||||
c4be230b4a30eb74e3a3908455731ebc2f731d3d
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ fn basic() {
|
|||
if b { return; }
|
||||
#[allow(unused)]
|
||||
let x = never();
|
||||
yield 2;
|
||||
#[allow(unreachable_code)]
|
||||
yield 2;
|
||||
drop(x);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue