blob: 67029cd04a1bdaa279dd3852e9f29fc63042c0a7 [file] [log] [blame]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Foo<A> {
a: A,
}
impl Foo<isize> {
fn test() -> i32 { // { dg-error "possible candidate" "TODO" { xfail *-*-* } }
123
}
fn bar(self) -> isize {
self.a
}
}
impl Foo<f32> {
fn test() -> i32 { // { dg-error "possible candidate" "TODO" { xfail *-*-* } }
123
}
fn bar(self) -> f32 {
self.a
}
}
fn main() {
let a: i32 = Foo::test(); // { dg-error "multiple applicable items in scope for: .test." }
}