Skip to content

Commit 5c7400c

Browse files
committed
Add nested TAIT inference test
1 parent 7b0e554 commit 5c7400c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
3+
#![feature(type_alias_impl_trait)]
4+
#![allow(dead_code)]
5+
6+
use std::fmt::Debug;
7+
8+
type FooX = impl Debug;
9+
10+
trait Foo<A> { }
11+
12+
impl Foo<()> for () { }
13+
14+
fn foo() -> impl Foo<FooX> {
15+
()
16+
}
17+
18+
fn main() { }

0 commit comments

Comments
 (0)