#[lang = "sized"] trait Sized {} fn main() { pub trait Foo { type A; fn boo(&self) -> ::A; } struct Bar; impl Foo for isize { type A = usize; fn boo(&self) -> usize { 42 } } fn baz(x: &>::A) {} // { dg-error "associated type bindings are not allowed here .E0229." "" { target *-*-* } .-1 } }