]>
Commit | Line | Data |
---|---|---|
fc512014 XL |
1 | error[E0658]: attributes on expressions are experimental |
2 | --> $DIR/capture-enums.rs:18: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 | error[E0658]: attributes on expressions are experimental | |
11 | --> $DIR/capture-enums.rs:49:13 | |
12 | | | |
13 | LL | let c = #[rustc_capture_analysis] | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information | |
17 | = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable | |
18 | ||
19 | warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes | |
20 | --> $DIR/capture-enums.rs:1:12 | |
21 | | | |
22 | LL | #![feature(capture_disjoint_fields)] | |
23 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
24 | | | |
25 | = note: `#[warn(incomplete_features)]` on by default | |
26 | = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information | |
27 | ||
28 | error: First Pass analysis includes: | |
29 | --> $DIR/capture-enums.rs:21:5 | |
30 | | | |
31 | LL | / || { | |
32 | LL | | | |
33 | LL | | | |
34 | LL | | if let Info::Point(_, _, str) = point { | |
35 | ... | | |
36 | LL | | } | |
37 | LL | | }; | |
38 | | |_____^ | |
39 | | | |
40 | note: Capturing point[] -> ImmBorrow | |
41 | --> $DIR/capture-enums.rs:24:41 | |
42 | | | |
43 | LL | if let Info::Point(_, _, str) = point { | |
44 | | ^^^^^ | |
45 | note: Capturing point[(2, 0)] -> ByValue | |
46 | --> $DIR/capture-enums.rs:24:41 | |
47 | | | |
48 | LL | if let Info::Point(_, _, str) = point { | |
49 | | ^^^^^ | |
50 | note: Capturing meta[] -> ImmBorrow | |
51 | --> $DIR/capture-enums.rs:31:35 | |
52 | | | |
53 | LL | if let Info::Meta(_, v) = meta { | |
54 | | ^^^^ | |
55 | note: Capturing meta[(1, 1)] -> ByValue | |
56 | --> $DIR/capture-enums.rs:31:35 | |
57 | | | |
58 | LL | if let Info::Meta(_, v) = meta { | |
59 | | ^^^^ | |
60 | ||
61 | error: Min Capture analysis includes: | |
62 | --> $DIR/capture-enums.rs:21:5 | |
63 | | | |
64 | LL | / || { | |
65 | LL | | | |
66 | LL | | | |
67 | LL | | if let Info::Point(_, _, str) = point { | |
68 | ... | | |
69 | LL | | } | |
70 | LL | | }; | |
71 | | |_____^ | |
72 | | | |
73 | note: Min Capture point[] -> ByValue | |
74 | --> $DIR/capture-enums.rs:24:41 | |
75 | | | |
76 | LL | if let Info::Point(_, _, str) = point { | |
77 | | ^^^^^ | |
78 | note: Min Capture meta[] -> ByValue | |
79 | --> $DIR/capture-enums.rs:31:35 | |
80 | | | |
81 | LL | if let Info::Meta(_, v) = meta { | |
82 | | ^^^^ | |
83 | ||
84 | error: First Pass analysis includes: | |
85 | --> $DIR/capture-enums.rs:52:5 | |
86 | | | |
87 | LL | / || { | |
88 | LL | | | |
89 | LL | | | |
90 | LL | | let SingleVariant::Point(_, _, str) = point; | |
91 | ... | | |
92 | LL | | println!("{}", str); | |
93 | LL | | }; | |
94 | | |_____^ | |
95 | | | |
96 | note: Capturing point[(2, 0)] -> ByValue | |
97 | --> $DIR/capture-enums.rs:55:47 | |
98 | | | |
99 | LL | let SingleVariant::Point(_, _, str) = point; | |
100 | | ^^^^^ | |
101 | ||
102 | error: Min Capture analysis includes: | |
103 | --> $DIR/capture-enums.rs:52:5 | |
104 | | | |
105 | LL | / || { | |
106 | LL | | | |
107 | LL | | | |
108 | LL | | let SingleVariant::Point(_, _, str) = point; | |
109 | ... | | |
110 | LL | | println!("{}", str); | |
111 | LL | | }; | |
112 | | |_____^ | |
113 | | | |
114 | note: Min Capture point[(2, 0)] -> ByValue | |
115 | --> $DIR/capture-enums.rs:55:47 | |
116 | | | |
117 | LL | let SingleVariant::Point(_, _, str) = point; | |
118 | | ^^^^^ | |
119 | ||
120 | error: aborting due to 6 previous errors; 1 warning emitted | |
121 | ||
122 | For more information about this error, try `rustc --explain E0658`. |