]>
Commit | Line | Data |
---|---|---|
fc512014 | 1 | error[E0658]: attributes on expressions are experimental |
136023e0 | 2 | --> $DIR/feature-gate-capture_disjoint_fields.rs:8:13 |
fc512014 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 | ||
fc512014 | 10 | error: First Pass analysis includes: |
136023e0 | 11 | --> $DIR/feature-gate-capture_disjoint_fields.rs:11:5 |
fc512014 XL |
12 | | |
13 | LL | / || { | |
14 | LL | | | |
15 | LL | | | |
16 | LL | | println!("This uses new capture analyysis to capture s={}", s); | |
17 | LL | | | |
18 | LL | | | |
19 | LL | | }; | |
20 | | |_____^ | |
21 | | | |
22 | note: Capturing s[] -> ImmBorrow | |
136023e0 | 23 | --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69 |
fc512014 XL |
24 | | |
25 | LL | println!("This uses new capture analyysis to capture s={}", s); | |
26 | | ^ | |
27 | ||
28 | error: Min Capture analysis includes: | |
136023e0 | 29 | --> $DIR/feature-gate-capture_disjoint_fields.rs:11:5 |
fc512014 XL |
30 | | |
31 | LL | / || { | |
32 | LL | | | |
33 | LL | | | |
34 | LL | | println!("This uses new capture analyysis to capture s={}", s); | |
35 | LL | | | |
36 | LL | | | |
37 | LL | | }; | |
38 | | |_____^ | |
39 | | | |
40 | note: Min Capture s[] -> ImmBorrow | |
136023e0 | 41 | --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69 |
fc512014 XL |
42 | | |
43 | LL | println!("This uses new capture analyysis to capture s={}", s); | |
44 | | ^ | |
45 | ||
136023e0 | 46 | error: aborting due to 3 previous errors |
fc512014 XL |
47 | |
48 | For more information about this error, try `rustc --explain E0658`. |