Skip to content

Commit f9b49c8

Browse files
committed
Add ICE reproduction for issue rust-lang/rust#79590.
1 parent d9b0e56 commit f9b49c8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ices/79590.rs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
trait Database: Restriction<Inner = u32> {}
2+
3+
trait Restriction {
4+
type Inner;
5+
}
6+
7+
struct Test {}
8+
9+
impl Database for Test {}
10+
impl Restriction for Test {
11+
type Inner = u32;
12+
}
13+
14+
fn main() {
15+
let t = Test {};
16+
let x: &Database<Inner = _> = &t;
17+
}

0 commit comments

Comments
 (0)