about summary refs log tree commit diff
path: root/src/test/ui/suggestions/impl-trait-missing-lifetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/impl-trait-missing-lifetime.rs')
-rw-r--r--src/test/ui/suggestions/impl-trait-missing-lifetime.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/suggestions/impl-trait-missing-lifetime.rs b/src/test/ui/suggestions/impl-trait-missing-lifetime.rs
deleted file mode 100644
index 6f7c912d707..00000000000
--- a/src/test/ui/suggestions/impl-trait-missing-lifetime.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// edition:2021
-
-#![feature(anonymous_lifetime_in_impl_trait)]
-
-// This is understood as `fn foo<'_1>(_: impl Iterator<Item = &'_1 ()>) {}`.
-fn f(_: impl Iterator<Item = &'_ ()>) {}
-
-// But that lifetime does not participate in resolution.
-fn g(mut x: impl Iterator<Item = &'_ ()>) -> Option<&'_ ()> { x.next() }
-//~^ ERROR missing lifetime specifier
-
-// This is understood as `fn foo<'_1>(_: impl Iterator<Item = &'_1 ()>) {}`.
-async fn h(_: impl Iterator<Item = &'_ ()>) {}
-
-// But that lifetime does not participate in resolution.
-async fn i(mut x: impl Iterator<Item = &'_ ()>) -> Option<&'_ ()> { x.next() }
-//~^ ERROR missing lifetime specifier
-//~| ERROR lifetime may not live long enough
-
-fn main() {}