]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / capture-analysis-1.stderr
CommitLineData
5869c6ff 1error[E0658]: attributes on expressions are experimental
136023e0 2 --> $DIR/capture-analysis-1.rs:15:13
5869c6ff
XL
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
5869c6ff 10error: First Pass analysis includes:
136023e0 11 --> $DIR/capture-analysis-1.rs:18:5
5869c6ff
XL
12 |
13LL | / || {
14LL | |
15LL | |
16LL | | println!("{:?}", p);
17... |
18LL | |
19LL | | };
20 | |_____^
21 |
22note: Capturing p[] -> ImmBorrow
136023e0 23 --> $DIR/capture-analysis-1.rs:21:26
5869c6ff
XL
24 |
25LL | println!("{:?}", p);
26 | ^
27note: Capturing p[(0, 0)] -> ImmBorrow
136023e0 28 --> $DIR/capture-analysis-1.rs:24:26
5869c6ff
XL
29 |
30LL | println!("{:?}", p.x);
31 | ^^^
32note: Capturing q[(0, 0)] -> ImmBorrow
136023e0 33 --> $DIR/capture-analysis-1.rs:27:26
5869c6ff
XL
34 |
35LL | println!("{:?}", q.x);
36 | ^^^
37note: Capturing q[] -> ImmBorrow
136023e0 38 --> $DIR/capture-analysis-1.rs:29:26
5869c6ff
XL
39 |
40LL | println!("{:?}", q);
41 | ^
42
43error: Min Capture analysis includes:
136023e0 44 --> $DIR/capture-analysis-1.rs:18:5
5869c6ff
XL
45 |
46LL | / || {
47LL | |
48LL | |
49LL | | println!("{:?}", p);
50... |
51LL | |
52LL | | };
53 | |_____^
54 |
55note: Min Capture p[] -> ImmBorrow
136023e0 56 --> $DIR/capture-analysis-1.rs:21:26
5869c6ff
XL
57 |
58LL | println!("{:?}", p);
59 | ^
60note: Min Capture q[] -> ImmBorrow
136023e0 61 --> $DIR/capture-analysis-1.rs:29:26
5869c6ff
XL
62 |
63LL | println!("{:?}", q);
64 | ^
65
136023e0 66error: aborting due to 3 previous errors
5869c6ff
XL
67
68For more information about this error, try `rustc --explain E0658`.