Skip to content

Commit 7301fe1

Browse files
author
hyd-dev
committed
Move #[allow(unreachable_code)] in tests/run-pass/generator.rs
1 parent 08ca560 commit 7301fe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

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

tests/run-pass/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ fn basic() {
9393
if b { return; }
9494
#[allow(unused)]
9595
let x = never();
96-
yield 2;
9796
#[allow(unreachable_code)]
97+
yield 2;
9898
drop(x);
9999
});
100100

0 commit comments

Comments
 (0)