about summary refs log tree commit diff
path: root/src/test/compile-fail/trait-impl-method-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/trait-impl-method-mismatch.rs')
-rw-r--r--src/test/compile-fail/trait-impl-method-mismatch.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/trait-impl-method-mismatch.rs b/src/test/compile-fail/trait-impl-method-mismatch.rs
index e64f76bb4cd..8df4bb47f88 100644
--- a/src/test/compile-fail/trait-impl-method-mismatch.rs
+++ b/src/test/compile-fail/trait-impl-method-mismatch.rs
@@ -10,13 +10,15 @@
 
 #![feature(managed_boxes)]
 
+use std::gc::Gc;
+
 trait Mumbo {
-    fn jumbo(&self, x: @uint) -> uint;
+    fn jumbo(&self, x: Gc<uint>) -> uint;
 }
 
 impl Mumbo for uint {
     // Cannot have a larger effect than the trait:
-    unsafe fn jumbo(&self, x: @uint) { *self + *x; }
+    unsafe fn jumbo(&self, x: Gc<uint>) { *self + *x; }
     //~^ ERROR expected normal fn but found unsafe fn
 }