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