Skip to content

Commit e261ef0

Browse files
authored
Rollup merge of #71103 - samrat:tait-sized, r=estebank
Add test case for type aliasing `impl Sized` Fixes #71085
2 parents 9de2a79 + 38bfba6 commit e261ef0

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)