Skip to content

Commit 5efda6c

Browse files
authored
Rollup merge of #70741 - DutchGhost:test-59023, r=Centril
Add test for #59023 Adds a test for #59023 Closes #59023
2 parents 8100c55 + 0ca2a5e commit 5efda6c

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)