X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fborrowck%2Fborrowck-in-static.stderr;h=77d6d7c231d1914f6e2369104cc9fe6654669764;hb=8ffa4080597231c49fabf63795dae4bf8e116248;hp=da639a837aa5096db8da86093fc5d42fd33ff716;hpb=9336b3d3d05d217ba8277e0d36e498e89bbbe276;p=rust.git diff --git a/src/test/ui/borrowck/borrowck-in-static.stderr b/src/test/ui/borrowck/borrowck-in-static.stderr index da639a837aa..77d6d7c231d 100644 --- a/src/test/ui/borrowck/borrowck-in-static.stderr +++ b/src/test/ui/borrowck/borrowck-in-static.stderr @@ -1,10 +1,10 @@ -error[E0507]: cannot move out of captured variable in an `Fn` closure +error[E0507]: cannot move out of `x`, a captured variable in an `Fn` closure --> $DIR/borrowck-in-static.rs:5:17 | LL | let x = Box::new(0); | - captured outer variable LL | Box::new(|| x) - | ^ cannot move out of captured variable in an `Fn` closure + | ^ move occurs because `x` has type `std::boxed::Box`, which does not implement the `Copy` trait error: aborting due to previous error