#[lang = "sized"] pub trait Sized {} struct Foo { a: A, } impl Foo { fn test() -> i32 { // { dg-error "possible candidate" "TODO" { xfail *-*-* } } 123 } fn bar(self) -> isize { self.a } } impl Foo { 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." } // { dg-error {Failed to resolve expression of function call} "" { target *-*-* } .-1 } }