diff options
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/nested.rs')
-rw-r--r-- | src/test/ui/type-alias-impl-trait/nested.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/type-alias-impl-trait/nested.rs b/src/test/ui/type-alias-impl-trait/nested.rs deleted file mode 100644 index 6b866be7d..000000000 --- a/src/test/ui/type-alias-impl-trait/nested.rs +++ /dev/null @@ -1,17 +0,0 @@ -#![feature(type_alias_impl_trait)] - -type Foo = impl std::fmt::Debug; -type Bar = impl Trait<Foo>; - -trait Trait<T> {} - -impl<T, U> Trait<T> for U {} - -fn bar() -> Bar { - 42 -} - -fn main() { - println!("{:?}", bar()); - //~^ ERROR `Bar` doesn't implement `Debug` -} |