]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs
1 // Formerly this ICEd with the following message:
2 // Tried to project an inherited associated type during coherence checking,
3 // which is currently not supported.
5 // No we expect to run into a more user-friendly cycle error instead.
6 #![feature(specialization)]
8 trait Trait
<T
> { type Assoc; }
11 impl<T
> Trait
<T
> for Vec
<T
> {
15 impl Trait
<u8> for Vec
<u8> {}
17 impl<T
> Trait
<T
> for String
{
21 impl Trait
<<Vec
<u8> as Trait
<u8>>::Assoc
> for String {}