We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
impl Sized
1 parent a00bd29 commit 38bfba6Copy full SHA for 38bfba6
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