@@ -70,6 +70,24 @@ LL | let c = #[rustc_capture_analysis]
7070 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
7171 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
7272
73+ error[E0658]: attributes on expressions are experimental
74+ --> $DIR/move_closure.rs:172:13
75+ |
76+ LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
77+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
78+ |
79+ = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
80+ = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
81+
82+ error[E0658]: attributes on expressions are experimental
83+ --> $DIR/move_closure.rs:189:13
84+ |
85+ LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
86+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
87+ |
88+ = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
89+ = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
90+
7391error: First Pass analysis includes:
7492 --> $DIR/move_closure.rs:15:5
7593 |
@@ -358,6 +376,54 @@ note: Min Capture t[(1, 0)] -> ByValue
358376LL | println!("{}", t.1.0);
359377 | ^^^^^
360378
361- error: aborting due to 24 previous errors
379+ error: First Pass analysis includes:
380+ --> $DIR/move_closure.rs:172:39
381+ |
382+ LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
383+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
384+ |
385+ note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
386+ --> $DIR/move_closure.rs:172:47
387+ |
388+ LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
389+ | ^^^^^^^^^^^
390+
391+ error: Min Capture analysis includes:
392+ --> $DIR/move_closure.rs:172:39
393+ |
394+ LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
395+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
396+ |
397+ note: Min Capture box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
398+ --> $DIR/move_closure.rs:172:47
399+ |
400+ LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
401+ | ^^^^^^^^^^^
402+
403+ error: First Pass analysis includes:
404+ --> $DIR/move_closure.rs:189:39
405+ |
406+ LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
407+ | ^^^^^^^^^^^^^^^^^^^^^
408+ |
409+ note: Capturing p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
410+ --> $DIR/move_closure.rs:189:47
411+ |
412+ LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
413+ | ^^^^^^^
414+
415+ error: Min Capture analysis includes:
416+ --> $DIR/move_closure.rs:189:39
417+ |
418+ LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
419+ | ^^^^^^^^^^^^^^^^^^^^^
420+ |
421+ note: Min Capture p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
422+ --> $DIR/move_closure.rs:189:47
423+ |
424+ LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
425+ | ^^^^^^^
426+
427+ error: aborting due to 30 previous errors
362428
363429For more information about this error, try `rustc --explain E0658`.
0 commit comments