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