fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/arrays-completely-captured.rs:8:17 3 | 4LL | let mut c = #[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: First Pass analysis includes: 11 --> $DIR/arrays-completely-captured.rs:11:5 12 | 13LL | / || { 14LL | | 15LL | | 16LL | | m[0] += 10; 17... | 18LL | | 19LL | | }; 20 | |_____^ 21 | 22note: Capturing m[] -> MutBorrow 23 --> $DIR/arrays-completely-captured.rs:14:9 24 | 25LL | m[0] += 10; 26 | ^ 27note: Capturing m[] -> MutBorrow 28 --> $DIR/arrays-completely-captured.rs:17:9 29 | 30LL | m[1] += 40; 31 | ^ 32 33error: Min Capture analysis includes: 34 --> $DIR/arrays-completely-captured.rs:11:5 35 | 36LL | / || { 37LL | | 38LL | | 39LL | | m[0] += 10; 40... | 41LL | | 42LL | | }; 43 | |_____^ 44 | 45note: Min Capture m[] -> MutBorrow 46 --> $DIR/arrays-completely-captured.rs:14:9 47 | 48LL | m[0] += 10; 49 | ^ 50 51error: aborting due to 3 previous errors 52 53For more information about this error, try `rustc --explain E0658`.