diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-consume-unsize-vec.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-consume-unsize-vec.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-consume-unsize-vec.rs b/src/test/ui/borrowck/borrowck-consume-unsize-vec.rs deleted file mode 100644 index 347f0212c..000000000 --- a/src/test/ui/borrowck/borrowck-consume-unsize-vec.rs +++ /dev/null @@ -1,12 +0,0 @@ -// Check that we report an error if an upcast box is moved twice. - -fn consume(_: Box<[i32]>) { -} - -fn foo(b: Box<[i32;5]>) { - consume(b); - consume(b); //~ ERROR use of moved value -} - -fn main() { -} |