]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / closures / 2229_closure_analysis / multilevel-path-2.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/multilevel-path-2.rs:17: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: First Pass analysis includes:
11   --> $DIR/multilevel-path-2.rs:20:5
12    |
13 LL | /     || {
14 LL | |
15 LL | |
16 LL | |         println!("{}", w.p.x);
17 LL | |
18 LL | |
19 LL | |     };
20    | |_____^
21    |
22 note: Capturing w[(0, 0),(0, 0)] -> ImmBorrow
23   --> $DIR/multilevel-path-2.rs:23:24
24    |
25 LL |         println!("{}", w.p.x);
26    |                        ^^^^^
27
28 error: Min Capture analysis includes:
29   --> $DIR/multilevel-path-2.rs:20:5
30    |
31 LL | /     || {
32 LL | |
33 LL | |
34 LL | |         println!("{}", w.p.x);
35 LL | |
36 LL | |
37 LL | |     };
38    | |_____^
39    |
40 note: Min Capture w[(0, 0),(0, 0)] -> ImmBorrow
41   --> $DIR/multilevel-path-2.rs:23:24
42    |
43 LL |         println!("{}", w.p.x);
44    |                        ^^^^^
45
46 error: aborting due to 3 previous errors
47
48 For more information about this error, try `rustc --explain E0658`.