blob: ba3736fb3d9cd188bdaa7d4290a29a1097b9f933 [file] [log] [blame]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
pub trait Foo {
fn foo();
}
impl Foo for u16 {
fn foo() {
<u16 as Foo>::foo()
}
}
fn main() {
let a: u16 = 123;
a.foo();
// { dg-error "no method named .foo. found in the current scope" "" { target *-*-* } .-1 }
}