fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/capture-analysis-2.rs:14:13 3 | 4LL | let 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/capture-analysis-2.rs:17:5 12 | 13LL | / || { 14LL | | 15LL | | 16LL | | let _x = p.x; 17... | 18LL | | 19LL | | }; 20 | |_____^ 21 | 22note: Capturing p[(0, 0)] -> ByValue 23 --> $DIR/capture-analysis-2.rs:20:18 24 | 25LL | let _x = p.x; 26 | ^^^ 27note: Capturing p[] -> ImmBorrow 28 --> $DIR/capture-analysis-2.rs:23:26 29 | 30LL | println!("{:?}", p); 31 | ^ 32 33error: Min Capture analysis includes: 34 --> $DIR/capture-analysis-2.rs:17:5 35 | 36LL | / || { 37LL | | 38LL | | 39LL | | let _x = p.x; 40... | 41LL | | 42LL | | }; 43 | |_____^ 44 | 45note: Min Capture p[] -> ByValue 46 --> $DIR/capture-analysis-2.rs:20:18 47 | 48LL | let _x = p.x; 49 | ^^^ p[] captured as ByValue here 50... 51LL | println!("{:?}", p); 52 | ^ p[] used here 53 54error: aborting due to 3 previous errors 55 56For more information about this error, try `rustc --explain E0658`.