diff options
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs')
-rw-r--r-- | src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs b/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs deleted file mode 100644 index c5e8068e5..000000000 --- a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs +++ /dev/null @@ -1,25 +0,0 @@ -// check-pass - -#![feature(type_alias_impl_trait)] - -type A = impl Sized; -fn f1() -> A { - 0 -} - -type B = impl ?Sized; -fn f2() -> &'static B { - &[0] -} - -type C = impl ?Sized + 'static; -fn f3() -> &'static C { - &[0] -} - -type D = impl ?Sized; -fn f4() -> &'static D { - &1 -} - -fn main() {} |