summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/live-upvar-across-yield.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generator/live-upvar-across-yield.rs')
-rw-r--r--tests/ui/generator/live-upvar-across-yield.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/ui/generator/live-upvar-across-yield.rs b/tests/ui/generator/live-upvar-across-yield.rs
deleted file mode 100644
index 6a2e42a55..000000000
--- a/tests/ui/generator/live-upvar-across-yield.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// run-pass
-
-#![feature(generators, generator_trait)]
-
-use std::ops::Generator;
-use std::pin::Pin;
-
-fn main() {
- let b = |_| 3;
- let mut a = || {
- b(yield);
- };
- Pin::new(&mut a).resume(());
-}