]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/capture-enums.stderr
Merge tag 'debian/1.50.0+dfsg1-1_exp4' into debian/sid
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / capture-enums.stderr
CommitLineData
fc512014
XL
1error[E0658]: attributes on expressions are experimental
2 --> $DIR/capture-enums.rs:18: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[E0658]: attributes on expressions are experimental
11 --> $DIR/capture-enums.rs:49:13
12 |
13LL | 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
19warning: 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 |
22LL | #![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
28error: First Pass analysis includes:
29 --> $DIR/capture-enums.rs:21:5
30 |
31LL | / || {
32LL | |
33LL | |
34LL | | if let Info::Point(_, _, str) = point {
35... |
36LL | | }
37LL | | };
38 | |_____^
39 |
40note: Capturing point[] -> ImmBorrow
41 --> $DIR/capture-enums.rs:24:41
42 |
43LL | if let Info::Point(_, _, str) = point {
44 | ^^^^^
45note: Capturing point[(2, 0)] -> ByValue
46 --> $DIR/capture-enums.rs:24:41
47 |
48LL | if let Info::Point(_, _, str) = point {
49 | ^^^^^
50note: Capturing meta[] -> ImmBorrow
51 --> $DIR/capture-enums.rs:31:35
52 |
53LL | if let Info::Meta(_, v) = meta {
54 | ^^^^
55note: Capturing meta[(1, 1)] -> ByValue
56 --> $DIR/capture-enums.rs:31:35
57 |
58LL | if let Info::Meta(_, v) = meta {
59 | ^^^^
60
61error: Min Capture analysis includes:
62 --> $DIR/capture-enums.rs:21:5
63 |
64LL | / || {
65LL | |
66LL | |
67LL | | if let Info::Point(_, _, str) = point {
68... |
69LL | | }
70LL | | };
71 | |_____^
72 |
73note: Min Capture point[] -> ByValue
74 --> $DIR/capture-enums.rs:24:41
75 |
76LL | if let Info::Point(_, _, str) = point {
77 | ^^^^^
78note: Min Capture meta[] -> ByValue
79 --> $DIR/capture-enums.rs:31:35
80 |
81LL | if let Info::Meta(_, v) = meta {
82 | ^^^^
83
84error: First Pass analysis includes:
85 --> $DIR/capture-enums.rs:52:5
86 |
87LL | / || {
88LL | |
89LL | |
90LL | | let SingleVariant::Point(_, _, str) = point;
91... |
92LL | | println!("{}", str);
93LL | | };
94 | |_____^
95 |
96note: Capturing point[(2, 0)] -> ByValue
97 --> $DIR/capture-enums.rs:55:47
98 |
99LL | let SingleVariant::Point(_, _, str) = point;
100 | ^^^^^
101
102error: Min Capture analysis includes:
103 --> $DIR/capture-enums.rs:52:5
104 |
105LL | / || {
106LL | |
107LL | |
108LL | | let SingleVariant::Point(_, _, str) = point;
109... |
110LL | | println!("{}", str);
111LL | | };
112 | |_____^
113 |
114note: Min Capture point[(2, 0)] -> ByValue
115 --> $DIR/capture-enums.rs:55:47
116 |
117LL | let SingleVariant::Point(_, _, str) = point;
118 | ^^^^^
119
120error: aborting due to 6 previous errors; 1 warning emitted
121
122For more information about this error, try `rustc --explain E0658`.