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