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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:31: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:53: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-12-14 02:09:17 -06:00
|
|
|
|
2021-02-11 18:36:05 -06:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:77: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:100: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:122: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:139: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:157: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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-02-11 18:36:05 -06:00
|
|
|
|
2021-07-09 03:34:11 -05:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:180:13
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:198:13
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-07-09 03:34:11 -05:00
|
|
|
|
2021-07-13 23:27:39 -05:00
|
|
|
error[E0658]: attributes on expressions are experimental
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:212:13
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:212:39
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: Capturing x[] -> ImmBorrow
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:212:47
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:212:39
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: Min Capture x[] -> ByValue
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:212:47
|
2021-07-13 23:27:39 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || x;
|
|
|
|
| ^
|
|
|
|
|
2020-12-14 02:09:17 -06:00
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:16: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:19:9
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new S".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:16: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:19:9
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new S".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:35: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:38:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | *ref_s += 10;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:35: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:38:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | *ref_s += 10;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:57: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:60:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new s".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:57: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:60:9
|
2020-12-14 02:09:17 -06:00
|
|
|
|
|
|
|
|
LL | t.0.0 = "new s".into();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:81: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:84: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:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:81: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:84: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:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:104: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:107:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:104: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:107:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = t.0.0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:126: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:129:18
|
2021-02-11 18:36:05 -06:00
|
|
|
|
|
|
|
|
LL | let _t = b.0;
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:126: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:129: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:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:143: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:146:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", b.0);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:143: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:146:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", b.0);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:161: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:164:24
|
2021-06-18 15:35:10 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}", t.1.0);
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:161: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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:164: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:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:180:39
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:180:47
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:180:39
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:180:47
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: First Pass analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:198:39
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:198:47
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: Min Capture analysis includes:
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:198:39
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
--> $DIR/move_closure.rs:198:47
|
2021-07-09 03:34:11 -05:00
|
|
|
|
|
|
|
|
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`.
|