Skip to content

Commit 38bfba6

Browse files
committed
Add test case for type aliasing impl Sized
1 parent a00bd29 commit 38bfba6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)