diff options
Diffstat (limited to 'src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs')
| -rw-r--r-- | src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs b/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs index 8f332646bbc..c507b636f15 100644 --- a/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs +++ b/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs @@ -8,7 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn foo(x: *~int) -> ~int { + +fn foo(x: *Box<int>) -> Box<int> { let y = *x; //~ ERROR dereference of unsafe pointer requires unsafe function or block return y; } |
