summary refs log tree commit diff
path: root/src/test/compile-fail/ambig_impl_1.rs
blob: 51247c7e8e9ea0f7ac74cd359864f46aa731d350 (plain)
1
2
3
impl methods1 for uint { fn me() -> uint { self } } //~ NOTE candidate #1 is `methods1::me`
impl methods2 for uint { fn me() -> uint { self } } //~ NOTE candidate #2 is `methods2::me`
fn main() { 1u.me(); } //~ ERROR multiple applicable methods in scope