diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-08 21:54:35 +1100 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-01-08 11:02:24 -0500 |
| commit | 0c70ce1424f380360dcc8d857c68d2df1a27b6fd (patch) | |
| tree | 74d2e8e7267b4edcc4d5defe5a9b1a34d4e1d215 /src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs | |
| parent | 4f5a57e80ef6c029278f1e8ef59e13dcea9b255b (diff) | |
| download | rust-0c70ce1424f380360dcc8d857c68d2df1a27b6fd.tar.gz rust-0c70ce1424f380360dcc8d857c68d2df1a27b6fd.zip | |
Update compile fail tests to use isize.
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 | 2 |
1 files changed, 1 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 87bb8ef7a58..8310d4ba144 100644 --- a/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs +++ b/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs @@ -9,7 +9,7 @@ // except according to those terms. -fn foo(x: *const Box<int>) -> Box<int> { +fn foo(x: *const Box<isize>) -> Box<isize> { let y = *x; //~ ERROR dereference of unsafe pointer requires unsafe function or block return y; } |
