2012-06-25 20:00:46 -07:00
|
|
|
impl methods for [uint]/~ {
|
2012-05-25 08:42:39 -07:00
|
|
|
fn foo() -> int {1} //! NOTE candidate #1 is `methods::foo`
|
|
|
|
}
|
|
|
|
|
2012-06-25 20:00:46 -07:00
|
|
|
impl methods for [int]/~ {
|
2012-05-25 08:42:39 -07:00
|
|
|
fn foo() -> int {2} //! NOTE candidate #2 is `methods::foo`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-25 20:00:46 -07:00
|
|
|
let x = []/~;
|
2012-05-25 08:42:39 -07:00
|
|
|
x.foo(); //! ERROR multiple applicable methods in scope
|
|
|
|
}
|