]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/wild_patterns.stderr
Move /src/test to /tests
[rust.git] / tests / ui / closures / 2229_closure_analysis / wild_patterns.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/wild_patterns.rs:22: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/wild_patterns.rs:40: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[E0658]: attributes on expressions are experimental
20   --> $DIR/wild_patterns.rs:58:13
21    |
22 LL |     let c = #[rustc_capture_analysis]
23    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
24    |
25    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
26    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
27
28 error: First Pass analysis includes:
29   --> $DIR/wild_patterns.rs:25:5
30    |
31 LL | /     || {
32 LL | |
33 LL | |
34 LL | |         // FIXME(arora-aman): Change `_x` to `_`
35 ...  |
36 LL | |
37 LL | |     };
38    | |_____^
39    |
40 note: Capturing p[(0, 0)] -> ImmBorrow
41   --> $DIR/wild_patterns.rs:29:37
42    |
43 LL |         let Point { x: _x, y: _ } = p;
44    |                                     ^
45
46 error: Min Capture analysis includes:
47   --> $DIR/wild_patterns.rs:25:5
48    |
49 LL | /     || {
50 LL | |
51 LL | |
52 LL | |         // FIXME(arora-aman): Change `_x` to `_`
53 ...  |
54 LL | |
55 LL | |     };
56    | |_____^
57    |
58 note: Min Capture p[(0, 0)] -> ImmBorrow
59   --> $DIR/wild_patterns.rs:29:37
60    |
61 LL |         let Point { x: _x, y: _ } = p;
62    |                                     ^
63
64 error: First Pass analysis includes:
65   --> $DIR/wild_patterns.rs:43:5
66    |
67 LL | /     || {
68 LL | |
69 LL | |
70 LL | |         // FIXME(arora-aman): Change `_x` to `_`
71 ...  |
72 LL | |
73 LL | |     };
74    | |_____^
75    |
76 note: Capturing t[(0, 0)] -> ByValue
77   --> $DIR/wild_patterns.rs:47:23
78    |
79 LL |         let (_x, _) = t;
80    |                       ^
81
82 error: Min Capture analysis includes:
83   --> $DIR/wild_patterns.rs:43:5
84    |
85 LL | /     || {
86 LL | |
87 LL | |
88 LL | |         // FIXME(arora-aman): Change `_x` to `_`
89 ...  |
90 LL | |
91 LL | |     };
92    | |_____^
93    |
94 note: Min Capture t[(0, 0)] -> ByValue
95   --> $DIR/wild_patterns.rs:47:23
96    |
97 LL |         let (_x, _) = t;
98    |                       ^
99
100 error: First Pass analysis includes:
101   --> $DIR/wild_patterns.rs:61:5
102    |
103 LL | /     || {
104 LL | |
105 LL | |
106 LL | |         // FIXME(arora-aman): Change `_x` to `_`
107 ...  |
108 LL | |
109 LL | |     };
110    | |_____^
111    |
112 note: Capturing arr[Index] -> ByValue
113   --> $DIR/wild_patterns.rs:65:23
114    |
115 LL |         let [_x, _] = arr;
116    |                       ^^^
117
118 error: Min Capture analysis includes:
119   --> $DIR/wild_patterns.rs:61:5
120    |
121 LL | /     || {
122 LL | |
123 LL | |
124 LL | |         // FIXME(arora-aman): Change `_x` to `_`
125 ...  |
126 LL | |
127 LL | |     };
128    | |_____^
129    |
130 note: Min Capture arr[] -> ByValue
131   --> $DIR/wild_patterns.rs:65:23
132    |
133 LL |         let [_x, _] = arr;
134    |                       ^^^
135
136 error: aborting due to 9 previous errors
137
138 For more information about this error, try `rustc --explain E0658`.