Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 1b411ac

Browse files
authored
Merge pull request #551 from rustbot/triagebot-ice-79590
ICE - rust-lang/rust#79590
2 parents d9b0e56 + f9b49c8 commit 1b411ac

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)