]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/capture-enums.stderr
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / ui / closures / 2229_closure_analysis / capture-enums.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/capture-enums.rs:16: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:47: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 error: First Pass analysis includes:
20   --> $DIR/capture-enums.rs:19:5
21    |
22 LL | /     || {
23 LL | |
24 LL | |
25 LL | |         if let Info::Point(_, _, str) = point {
26 ...  |
27 LL | |         }
28 LL | |     };
29    | |_____^
30    |
31 note: Capturing point[] -> ImmBorrow
32   --> $DIR/capture-enums.rs:22:41
33    |
34 LL |         if let Info::Point(_, _, str) = point {
35    |                                         ^^^^^
36 note: Capturing point[(2, 0)] -> ByValue
37   --> $DIR/capture-enums.rs:22:41
38    |
39 LL |         if let Info::Point(_, _, str) = point {
40    |                                         ^^^^^
41 note: Capturing meta[] -> ImmBorrow
42   --> $DIR/capture-enums.rs:29:35
43    |
44 LL |         if let Info::Meta(_, v) = meta {
45    |                                   ^^^^
46 note: Capturing meta[(1, 1)] -> ByValue
47   --> $DIR/capture-enums.rs:29:35
48    |
49 LL |         if let Info::Meta(_, v) = meta {
50    |                                   ^^^^
51
52 error: Min Capture analysis includes:
53   --> $DIR/capture-enums.rs:19:5
54    |
55 LL | /     || {
56 LL | |
57 LL | |
58 LL | |         if let Info::Point(_, _, str) = point {
59 ...  |
60 LL | |         }
61 LL | |     };
62    | |_____^
63    |
64 note: Min Capture point[] -> ByValue
65   --> $DIR/capture-enums.rs:22:41
66    |
67 LL |         if let Info::Point(_, _, str) = point {
68    |                                         ^^^^^
69 note: Min Capture meta[] -> ByValue
70   --> $DIR/capture-enums.rs:29:35
71    |
72 LL |         if let Info::Meta(_, v) = meta {
73    |                                   ^^^^
74
75 error: First Pass analysis includes:
76   --> $DIR/capture-enums.rs:50:5
77    |
78 LL | /     || {
79 LL | |
80 LL | |
81 LL | |         let SingleVariant::Point(_, _, str) = point;
82 ...  |
83 LL | |         println!("{}", str);
84 LL | |     };
85    | |_____^
86    |
87 note: Capturing point[(2, 0)] -> ByValue
88   --> $DIR/capture-enums.rs:53:47
89    |
90 LL |         let SingleVariant::Point(_, _, str) = point;
91    |                                               ^^^^^
92
93 error: Min Capture analysis includes:
94   --> $DIR/capture-enums.rs:50:5
95    |
96 LL | /     || {
97 LL | |
98 LL | |
99 LL | |         let SingleVariant::Point(_, _, str) = point;
100 ...  |
101 LL | |         println!("{}", str);
102 LL | |     };
103    | |_____^
104    |
105 note: Min Capture point[(2, 0)] -> ByValue
106   --> $DIR/capture-enums.rs:53:47
107    |
108 LL |         let SingleVariant::Point(_, _, str) = point;
109    |                                               ^^^^^
110
111 error: aborting due to 6 previous errors
112
113 For more information about this error, try `rustc --explain E0658`.