]> 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 ce2df508f70e173b4618a83c99d8b3ae34761b3d..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 }
@@ -21,5 +20,5 @@ fn f<T:A>(i: T) {
 }
 
 pub fn main () {
-    f(0);
+    f(0i);
 }