diff options
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs')
-rw-r--r-- | src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs b/src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs deleted file mode 100644 index 27ca7d0fd..000000000 --- a/src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs +++ /dev/null @@ -1,20 +0,0 @@ -// check-pass - -#![feature(generators, generator_trait)] -#![feature(type_alias_impl_trait)] - -trait Trait {} - -impl<T> Trait for T {} - -type Foo<'c> = impl Trait + 'c; -fn foo<'a>(rng: &'a ()) -> Foo<'a> { - fn helper<'b>(rng: &'b ()) -> impl 'b + Trait { - rng - } - - helper(rng) -} - -fn main() { -} |