]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-default-method-bound.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / trait-default-method-bound.rs
index 756af0d63fdefa8e1924eb55c266ba0d4f8d52a0..1505d48839e45f6e3248425aac46674657846eaa 100644 (file)
@@ -8,7 +8,6 @@
 // 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 }
@@ -17,9 +16,9 @@ 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);
 }