]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error[E0658]: attributes on expressions are experimental |
2 | --> $DIR/capture-analysis-1.rs:17:13 | |
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 | ||
10 | warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes | |
11 | --> $DIR/capture-analysis-1.rs:1:12 | |
12 | | | |
13 | LL | #![feature(capture_disjoint_fields)] | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = note: `#[warn(incomplete_features)]` on by default | |
17 | = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information | |
18 | ||
19 | error: First Pass analysis includes: | |
20 | --> $DIR/capture-analysis-1.rs:20:5 | |
21 | | | |
22 | LL | / || { | |
23 | LL | | | |
24 | LL | | | |
25 | LL | | println!("{:?}", p); | |
26 | ... | | |
27 | LL | | | |
28 | LL | | }; | |
29 | | |_____^ | |
30 | | | |
31 | note: Capturing p[] -> ImmBorrow | |
32 | --> $DIR/capture-analysis-1.rs:23:26 | |
33 | | | |
34 | LL | println!("{:?}", p); | |
35 | | ^ | |
36 | note: Capturing p[(0, 0)] -> ImmBorrow | |
37 | --> $DIR/capture-analysis-1.rs:26:26 | |
38 | | | |
39 | LL | println!("{:?}", p.x); | |
40 | | ^^^ | |
41 | note: Capturing q[(0, 0)] -> ImmBorrow | |
42 | --> $DIR/capture-analysis-1.rs:29:26 | |
43 | | | |
44 | LL | println!("{:?}", q.x); | |
45 | | ^^^ | |
46 | note: Capturing q[] -> ImmBorrow | |
47 | --> $DIR/capture-analysis-1.rs:31:26 | |
48 | | | |
49 | LL | println!("{:?}", q); | |
50 | | ^ | |
51 | ||
52 | error: Min Capture analysis includes: | |
53 | --> $DIR/capture-analysis-1.rs:20:5 | |
54 | | | |
55 | LL | / || { | |
56 | LL | | | |
57 | LL | | | |
58 | LL | | println!("{:?}", p); | |
59 | ... | | |
60 | LL | | | |
61 | LL | | }; | |
62 | | |_____^ | |
63 | | | |
64 | note: Min Capture p[] -> ImmBorrow | |
65 | --> $DIR/capture-analysis-1.rs:23:26 | |
66 | | | |
67 | LL | println!("{:?}", p); | |
68 | | ^ | |
69 | note: Min Capture q[] -> ImmBorrow | |
70 | --> $DIR/capture-analysis-1.rs:31:26 | |
71 | | | |
72 | LL | println!("{:?}", q); | |
73 | | ^ | |
74 | ||
75 | error: aborting due to 3 previous errors; 1 warning emitted | |
76 | ||
77 | For more information about this error, try `rustc --explain E0658`. |