1 // Test an ambiguity scenario where one copy of the method is available
2 // from a trait imported from another crate.
4 // aux-build:ambig_impl_2_lib.rs
5 extern crate ambig_impl_2_lib;
6 use ambig_impl_2_lib::Me;
10 impl Me2 for usize { fn me(&self) -> usize { *self } }
11 fn main() { 1_usize.me(); } //~ ERROR E0034