Add nested TAIT inference test

This commit is contained in:
Santiago Pastorino 2021-08-27 17:48:51 -03:00
parent 7b0e554ee2
commit 5c7400c12d
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -0,0 +1,18 @@
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
use std::fmt::Debug;
type FooX = impl Debug;
trait Foo<A> { }
impl Foo<()> for () { }
fn foo() -> impl Foo<FooX> {
()
}
fn main() { }