diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr')
-rw-r--r-- | src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr b/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr deleted file mode 100644 index 9509ebb7c..000000000 --- a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr +++ /dev/null @@ -1,18 +0,0 @@ -error[E0382]: use of moved value: `t` - --> $DIR/borrowck-move-moved-value-into-closure.rs:11:12 - | -LL | let t: Box<_> = Box::new(3); - | - move occurs because `t` has type `Box<isize>`, which does not implement the `Copy` trait -LL | -LL | call_f(move|| { *t + 1 }); - | ------ -- variable moved due to use in closure - | | - | value moved into closure here -LL | call_f(move|| { *t + 1 }); - | ^^^^^^ -- use occurs due to use in closure - | | - | value used here after move - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0382`. |