rust/src/test/compile-fail/ambig_impl_1.rs
2012-05-02 21:47:14 -07:00

4 lines
250 B
Rust

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