1 // Test that we correctly report an ambiguity where two applicable traits
2 // are in scope and the method being invoked is a default method not
3 // defined directly in the impl.
5 trait Foo { fn method(&self) {} }
6 trait Bar { fn method(&self) {} }
12 1_usize.method(); //~ ERROR E0034