]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / capture-analysis-3.stderr
1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/capture-analysis-3.rs:19: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/capture-analysis-3.rs:22:5
12 |
13 LL | / || {
14 LL | |
15 LL | |
16 LL | | let _x = a.b.c;
17 ... |
18 LL | |
19 LL | | };
20 | |_____^
21 |
22 note: Capturing a[(0, 0),(0, 0)] -> ByValue
23 --> $DIR/capture-analysis-3.rs:25:18
24 |
25 LL | let _x = a.b.c;
26 | ^^^^^
27 note: Capturing a[(0, 0)] -> ImmBorrow
28 --> $DIR/capture-analysis-3.rs:28:26
29 |
30 LL | println!("{:?}", a.b);
31 | ^^^
32
33 error: Min Capture analysis includes:
34 --> $DIR/capture-analysis-3.rs:22:5
35 |
36 LL | / || {
37 LL | |
38 LL | |
39 LL | | let _x = a.b.c;
40 ... |
41 LL | |
42 LL | | };
43 | |_____^
44 |
45 note: Min Capture a[(0, 0)] -> ByValue
46 --> $DIR/capture-analysis-3.rs:25:18
47 |
48 LL | let _x = a.b.c;
49 | ^^^^^ a[(0, 0)] captured as ByValue here
50 ...
51 LL | println!("{:?}", a.b);
52 | ^^^ a[(0, 0)] used here
53
54 error: aborting due to 3 previous errors
55
56 For more information about this error, try `rustc --explain E0658`.