diff options
Diffstat (limited to 'src/test/compile-fail/kindck-nonsendable-1.rs')
| -rw-r--r-- | src/test/compile-fail/kindck-nonsendable-1.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/kindck-nonsendable-1.rs b/src/test/compile-fail/kindck-nonsendable-1.rs index 8fe9694b0cb..cad340cedb1 100644 --- a/src/test/compile-fail/kindck-nonsendable-1.rs +++ b/src/test/compile-fail/kindck-nonsendable-1.rs @@ -10,10 +10,12 @@ #![feature(managed_boxes)] -fn foo(_x: @uint) {} +use std::gc::{Gc, GC}; + +fn foo(_x: Gc<uint>) {} fn main() { - let x = @3u; + let x = box(GC) 3u; let _: proc():Send = proc() foo(x); //~ ERROR does not fulfill `Send` let _: proc():Send = proc() foo(x); //~ ERROR does not fulfill `Send` let _: proc():Send = proc() foo(x); //~ ERROR does not fulfill `Send` |
