Rollup merge of #70741 - DutchGhost:test-59023, r=Centril

Add test for #59023

Adds a test for https://github.com/rust-lang/rust/issues/59023

Closes https://github.com/rust-lang/rust/issues/59023
This commit is contained in:
Mazdak Farrokhzad 2020-04-03 22:55:16 +02:00 committed by GitHub
commit 4c41ea36cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}