fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/nested-closure.rs:19:18 3 | 4LL | let mut c1 = #[rustc_capture_analysis] 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 10error[E0658]: attributes on expressions are experimental 11 --> $DIR/nested-closure.rs:29:22 12 | 13LL | let mut c2 = #[rustc_capture_analysis] 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 19error: First Pass analysis includes: 20 --> $DIR/nested-closure.rs:32:9 21 | 22LL | || p.y += incr; 23 | ^^^^^^^^^^^^^^ 24 | 25note: Capturing p[(1, 0)] -> MutBorrow 26 --> $DIR/nested-closure.rs:32:12 27 | 28LL | || p.y += incr; 29 | ^^^ 30note: Capturing incr[] -> ImmBorrow 31 --> $DIR/nested-closure.rs:32:19 32 | 33LL | || p.y += incr; 34 | ^^^^ 35 36error: Min Capture analysis includes: 37 --> $DIR/nested-closure.rs:32:9 38 | 39LL | || p.y += incr; 40 | ^^^^^^^^^^^^^^ 41 | 42note: Min Capture p[(1, 0)] -> MutBorrow 43 --> $DIR/nested-closure.rs:32:12 44 | 45LL | || p.y += incr; 46 | ^^^ 47note: Min Capture incr[] -> ImmBorrow 48 --> $DIR/nested-closure.rs:32:19 49 | 50LL | || p.y += incr; 51 | ^^^^ 52 53error: First Pass analysis includes: 54 --> $DIR/nested-closure.rs:22:5 55 | 56LL | / || { 57LL | | 58LL | | 59LL | | println!("{}", p.x); 60... | 61LL | | 62LL | | }; 63 | |_____^ 64 | 65note: Capturing p[(0, 0)] -> ImmBorrow 66 --> $DIR/nested-closure.rs:25:24 67 | 68LL | println!("{}", p.x); 69 | ^^^ 70note: Capturing p[(1, 0)] -> MutBorrow 71 --> $DIR/nested-closure.rs:32:12 72 | 73LL | || p.y += incr; 74 | ^^^ 75note: Capturing p[(1, 0)] -> ImmBorrow 76 --> $DIR/nested-closure.rs:42:24 77 | 78LL | println!("{}", p.y); 79 | ^^^ 80 81error: Min Capture analysis includes: 82 --> $DIR/nested-closure.rs:22:5 83 | 84LL | / || { 85LL | | 86LL | | 87LL | | println!("{}", p.x); 88... | 89LL | | 90LL | | }; 91 | |_____^ 92 | 93note: Min Capture p[(0, 0)] -> ImmBorrow 94 --> $DIR/nested-closure.rs:25:24 95 | 96LL | println!("{}", p.x); 97 | ^^^ 98note: Min Capture p[(1, 0)] -> MutBorrow 99 --> $DIR/nested-closure.rs:32:12 100 | 101LL | || p.y += incr; 102 | ^^^ 103 104error: aborting due to 6 previous errors 105 106For more information about this error, try `rustc --explain E0658`.