2012-07-11 15:00:40 -07:00
|
|
|
trait foo {
|
|
|
|
fn foo() -> int;
|
|
|
|
}
|
|
|
|
|
2012-08-07 18:10:06 -07:00
|
|
|
impl ~[uint]: foo {
|
|
|
|
fn foo() -> int {1} //~ NOTE candidate #1 is `__extensions__::foo`
|
2012-05-25 08:42:39 -07:00
|
|
|
}
|
|
|
|
|
2012-08-07 18:10:06 -07:00
|
|
|
impl ~[int]: foo {
|
|
|
|
fn foo() -> int {2} //~ NOTE candidate #2 is `__extensions__::foo`
|
2012-05-25 08:42:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-29 16:26:56 -07:00
|
|
|
let x = ~[];
|
2012-06-30 12:23:59 +01:00
|
|
|
x.foo(); //~ ERROR multiple applicable methods in scope
|
2012-07-11 15:00:40 -07:00
|
|
|
}
|