Skip to content

Commit 0ca2a5e

Browse files
committed
Add test for #59023
1 parent 8ab82b8 commit 0ca2a5e

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+
trait A {
4+
type Foo;
5+
}
6+
7+
impl<T> A for T {
8+
type Foo = ();
9+
}
10+
11+
fn foo() -> impl std::borrow::Borrow<<u8 as A>::Foo> {
12+
()
13+
}
14+
15+
fn main() {
16+
foo();
17+
}

0 commit comments

Comments
 (0)