summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/issue-58888.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generator/issue-58888.rs')
-rw-r--r--tests/ui/generator/issue-58888.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/ui/generator/issue-58888.rs b/tests/ui/generator/issue-58888.rs
deleted file mode 100644
index d42d09d40..000000000
--- a/tests/ui/generator/issue-58888.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// run-pass
-// compile-flags: -g
-// ignore-asmjs wasm2js does not support source maps yet
-
-#![feature(generators, generator_trait)]
-
-use std::ops::Generator;
-
-struct Database;
-
-impl Database {
- fn get_connection(&self) -> impl Iterator<Item = ()> {
- Some(()).into_iter()
- }
-
- fn check_connection(&self) -> impl Generator<Yield = (), Return = ()> + '_ {
- move || {
- let iter = self.get_connection();
- for i in iter {
- yield i
- }
- }
- }
-}
-
-fn main() {
- Database.check_connection();
-}