2020-12-14 02:09:17 -06:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:12:17
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | let mut c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:30:17
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | let mut c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:51:17
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | let mut c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
2021-02-11 18:36:05 -06:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:74:17
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let mut c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:96:17
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let mut c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:117:13
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:133:13
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:150:13
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
2021-07-09 03:34:11 -05:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
|
|
|
--> $DIR/move_closure.rs:172:13
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
|
|
|
--> $DIR/move_closure.rs:189:13
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
2021-07-13 23:27:39 -05:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
|
|
|
--> $DIR/move_closure.rs:202:13
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
|
|
|
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:202:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: Capturing x[] -> ImmBorrow
|
|
|
|
--> $DIR/move_closure.rs:202:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:202:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: Min Capture x[] -> ByValue
|
|
|
|
--> $DIR/move_closure.rs:202:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^
|
|
|
|
|
2020-12-14 02:09:17 -06:00
|
|
|
error: First Pass analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:15:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | | t.0.0 = "new S".into();
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-08 23:25:41 -05:00
|
|
|
note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:18:9
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new S".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:15:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | t.0.0 = "new S".into();
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: Min Capture t[(0, 0),(0, 0)] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:18:9
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new S".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:33:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2020-12-14 02:09:17 -06:00
|
|
|
LL | | *ref_s += 10;
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-27 01:24:46 -05:00
|
|
|
note: Capturing ref_s[Deref] -> MutBorrow
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:36:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | *ref_s += 10;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:33:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | *ref_s += 10;
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-08-29 15:28:58 -05:00
|
|
|
note: Min Capture ref_s[] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:36:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | *ref_s += 10;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:54:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | t.0.0 = "new s".into();
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-27 01:24:46 -05:00
|
|
|
note: Capturing t[(0, 0),Deref,(0, 0)] -> MutBorrow
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:57:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new s".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:54:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | t.0.0 = "new s".into();
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-08-29 15:28:58 -05:00
|
|
|
note: Min Capture t[(0, 0)] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:57:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new s".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:77:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | | let _t = t.0.0;
|
2020-12-14 02:09:17 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-09 02:55:03 -05:00
|
|
|
note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:80:18
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:77:5
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | | let _t = t.0.0;
|
2020-12-14 02:09:17 -06:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-08-29 15:28:58 -05:00
|
|
|
note: Min Capture t[(0, 0)] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:80:18
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:99:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | let _t = t.0.0;
|
2021-07-08 23:25:41 -05:00
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-09 02:55:03 -05:00
|
|
|
note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:102:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:99:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | let _t = t.0.0;
|
2021-07-08 23:25:41 -05:00
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: Min Capture t[(0, 0)] -> ByValue
|
2021-06-27 01:22:46 -05:00
|
|
|
--> $DIR/move_closure.rs:102:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:120:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | let _t = b.0;
|
2021-07-08 23:25:41 -05:00
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-08 23:25:41 -05:00
|
|
|
note: Capturing b[Deref,(0, 0)] -> ImmBorrow
|
|
|
|
--> $DIR/move_closure.rs:123:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = b.0;
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:120:5
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | let _t = b.0;
|
2021-07-08 23:25:41 -05:00
|
|
|
LL | |
|
2021-02-11 18:36:05 -06:00
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: Min Capture b[] -> ByValue
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:123:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = b.0;
|
|
|
|
| ^^^
|
2020-12-14 02:09:17 -06:00
|
|
|
|
2021-06-18 15:35:10 -05:00
|
|
|
error: First Pass analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:136:5
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | println!("{}", b.0);
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-08 23:25:41 -05:00
|
|
|
note: Capturing b[Deref,(0, 0)] -> ImmBorrow
|
|
|
|
--> $DIR/move_closure.rs:139:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", b.0);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:136:5
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | println!("{}", b.0);
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: Min Capture b[] -> ByValue
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:139:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", b.0);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:153:5
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | println!("{}", t.1.0);
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-08 23:25:41 -05:00
|
|
|
note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
|
|
|
|
--> $DIR/move_closure.rs:156:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", t.1.0);
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:153:5
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | / move || {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | println!("{}", t.1.0);
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: Min Capture t[(1, 0)] -> ByValue
|
2021-07-08 23:25:41 -05:00
|
|
|
--> $DIR/move_closure.rs:156:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", t.1.0);
|
|
|
|
| ^^^^^
|
|
|
|
|
2021-07-09 03:34:11 -05:00
|
|
|
error: First Pass analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:172:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-27 01:24:46 -05:00
|
|
|
note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
2021-07-09 03:34:11 -05:00
|
|
|
--> $DIR/move_closure.rs:172:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:172:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-08-29 15:28:58 -05:00
|
|
|
note: Min Capture box_p_foo[] -> ByValue
|
2021-07-09 03:34:11 -05:00
|
|
|
--> $DIR/move_closure.rs:172:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:189:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-07-27 01:24:46 -05:00
|
|
|
note: Capturing p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
2021-07-09 03:34:11 -05:00
|
|
|
--> $DIR/move_closure.rs:189:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
|
|
|
--> $DIR/move_closure.rs:189:39
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-08-29 15:28:58 -05:00
|
|
|
note: Min Capture p_foo[] -> ByValue
|
2021-07-09 03:34:11 -05:00
|
|
|
--> $DIR/move_closure.rs:189:47
|
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2021-07-13 23:27:39 -05:00
|
|
|
error: aborting due to 33 previous errors
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|