Add test for #59023

This commit is contained in:
DutchGhost
2020-04-03 18:28:01 +02:00
parent 8ab82b87af
commit 0ca2a5e52c
@@ -0,0 +1,17 @@
// check-pass
trait A {
type Foo;
}
impl<T> A for T {
type Foo = ();
}
fn foo() -> impl std::borrow::Borrow<<u8 as A>::Foo> {
()
}
fn main() {
foo();
}