We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9de2a79 + 38bfba6 commit e261ef0Copy full SHA for e261ef0
src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs
@@ -0,0 +1,17 @@
1
+// check-pass
2
+
3
+#![feature(type_alias_impl_trait)]
4
5
+type A = impl Sized;
6
+fn f1() -> A { 0 }
7
8
+type B = impl ?Sized;
9
+fn f2() -> &'static B { &[0] }
10
11
+type C = impl ?Sized + 'static;
12
+fn f3() -> &'static C { &[0] }
13
14
+type D = impl ?Sized;
15
+fn f4() -> &'static D { &1 }
16
17
+fn main() {}
0 commit comments