]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/issue-91594.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / issue-91594.rs
CommitLineData
5099ac24
FG
1// #91594: This used to ICE.
2
3trait Component<M> {
4 type Interface;
5}
6trait HasComponent<I> {}
7
8struct Foo;
9
10impl HasComponent<<Foo as Component<Foo>>::Interface> for Foo {}
11//~^ ERROR the trait bound `Foo: HasComponent<()>` is not satisfied
12
13impl<M: HasComponent<()>> Component<M> for Foo {
14 type Interface = u8;
15}
16
17fn main() {}