diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs b/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs deleted file mode 100644 index 824da5ceb..000000000 --- a/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs +++ /dev/null @@ -1,7 +0,0 @@ -unsafe fn foo(x: *const Box<isize>) -> Box<isize> { - let y = *x; //~ ERROR cannot move out of `*x` which is behind a raw pointer - return y; -} - -fn main() { -} |