mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
Move #[allow(unreachable_code)] in tests/run-pass/generator.rs
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
f66e825f73d2bd7f8a763b723983850f891985b0
|
||||
c4be230b4a30eb74e3a3908455731ebc2f731d3d
|
||||
|
||||
@@ -93,8 +93,8 @@ fn never() -> Never {
|
||||
if b { return; }
|
||||
#[allow(unused)]
|
||||
let x = never();
|
||||
yield 2;
|
||||
#[allow(unreachable_code)]
|
||||
yield 2;
|
||||
drop(x);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user