// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[allow(default_methods)];
trait A {
fn g(&self) -> int { 10 }
impl A for int { }
fn f<T:A>(i: T) {
- assert!(i.g() == 10);
+ assert_eq!(i.g(), 10);
}
pub fn main () {
- f(0);
+ f(0i);
}