|
| 1 | +error[E0658]: attributes on expressions are experimental |
| 2 | + --> $DIR/issue-88476.rs:20:13 |
| 3 | + | |
| 4 | +LL | let x = #[rustc_capture_analysis] move || { |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information |
| 8 | + = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable |
| 9 | + |
| 10 | +error[E0658]: attributes on expressions are experimental |
| 11 | + --> $DIR/issue-88476.rs:47:13 |
| 12 | + | |
| 13 | +LL | let c = #[rustc_capture_analysis] move || { |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information |
| 17 | + = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable |
| 18 | + |
| 19 | +error: First Pass analysis includes: |
| 20 | + --> $DIR/issue-88476.rs:20:39 |
| 21 | + | |
| 22 | +LL | let x = #[rustc_capture_analysis] move || { |
| 23 | + | _______________________________________^ |
| 24 | +LL | | |
| 25 | +LL | | |
| 26 | +LL | | |
| 27 | +... | |
| 28 | +LL | | |
| 29 | +LL | | }; |
| 30 | + | |_____^ |
| 31 | + | |
| 32 | +note: Capturing f[(0, 0)] -> ImmBorrow |
| 33 | + --> $DIR/issue-88476.rs:25:26 |
| 34 | + | |
| 35 | +LL | println!("{:?}", f.0); |
| 36 | + | ^^^ |
| 37 | + |
| 38 | +error: Min Capture analysis includes: |
| 39 | + --> $DIR/issue-88476.rs:20:39 |
| 40 | + | |
| 41 | +LL | let x = #[rustc_capture_analysis] move || { |
| 42 | + | _______________________________________^ |
| 43 | +LL | | |
| 44 | +LL | | |
| 45 | +LL | | |
| 46 | +... | |
| 47 | +LL | | |
| 48 | +LL | | }; |
| 49 | + | |_____^ |
| 50 | + | |
| 51 | +note: Min Capture f[] -> ByValue |
| 52 | + --> $DIR/issue-88476.rs:25:26 |
| 53 | + | |
| 54 | +LL | println!("{:?}", f.0); |
| 55 | + | ^^^ |
| 56 | + |
| 57 | +error: First Pass analysis includes: |
| 58 | + --> $DIR/issue-88476.rs:47:39 |
| 59 | + | |
| 60 | +LL | let c = #[rustc_capture_analysis] move || { |
| 61 | + | _______________________________________^ |
| 62 | +LL | | |
| 63 | +LL | | |
| 64 | +LL | | |
| 65 | +... | |
| 66 | +LL | | |
| 67 | +LL | | }; |
| 68 | + | |_____^ |
| 69 | + | |
| 70 | +note: Capturing character[(0, 0)] -> ImmBorrow |
| 71 | + --> $DIR/issue-88476.rs:52:24 |
| 72 | + | |
| 73 | +LL | println!("{}", character.hp) |
| 74 | + | ^^^^^^^^^^^^ |
| 75 | + |
| 76 | +error: Min Capture analysis includes: |
| 77 | + --> $DIR/issue-88476.rs:47:39 |
| 78 | + | |
| 79 | +LL | let c = #[rustc_capture_analysis] move || { |
| 80 | + | _______________________________________^ |
| 81 | +LL | | |
| 82 | +LL | | |
| 83 | +LL | | |
| 84 | +... | |
| 85 | +LL | | |
| 86 | +LL | | }; |
| 87 | + | |_____^ |
| 88 | + | |
| 89 | +note: Min Capture character[(0, 0)] -> ByValue |
| 90 | + --> $DIR/issue-88476.rs:52:24 |
| 91 | + | |
| 92 | +LL | println!("{}", character.hp) |
| 93 | + | ^^^^^^^^^^^^ |
| 94 | + |
| 95 | +error: aborting due to 6 previous errors |
| 96 | + |
| 97 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments