]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / capture-analysis-1.stderr
CommitLineData
5869c6ff
XL
1error[E0658]: attributes on expressions are experimental
2 --> $DIR/capture-analysis-1.rs:17:13
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
10warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11 --> $DIR/capture-analysis-1.rs:1:12
12 |
13LL | #![feature(capture_disjoint_fields)]
14 | ^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = note: `#[warn(incomplete_features)]` on by default
17 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
18
19error: First Pass analysis includes:
20 --> $DIR/capture-analysis-1.rs:20:5
21 |
22LL | / || {
23LL | |
24LL | |
25LL | | println!("{:?}", p);
26... |
27LL | |
28LL | | };
29 | |_____^
30 |
31note: Capturing p[] -> ImmBorrow
32 --> $DIR/capture-analysis-1.rs:23:26
33 |
34LL | println!("{:?}", p);
35 | ^
36note: Capturing p[(0, 0)] -> ImmBorrow
37 --> $DIR/capture-analysis-1.rs:26:26
38 |
39LL | println!("{:?}", p.x);
40 | ^^^
41note: Capturing q[(0, 0)] -> ImmBorrow
42 --> $DIR/capture-analysis-1.rs:29:26
43 |
44LL | println!("{:?}", q.x);
45 | ^^^
46note: Capturing q[] -> ImmBorrow
47 --> $DIR/capture-analysis-1.rs:31:26
48 |
49LL | println!("{:?}", q);
50 | ^
51
52error: Min Capture analysis includes:
53 --> $DIR/capture-analysis-1.rs:20:5
54 |
55LL | / || {
56LL | |
57LL | |
58LL | | println!("{:?}", p);
59... |
60LL | |
61LL | | };
62 | |_____^
63 |
64note: Min Capture p[] -> ImmBorrow
65 --> $DIR/capture-analysis-1.rs:23:26
66 |
67LL | println!("{:?}", p);
68 | ^
69note: Min Capture q[] -> ImmBorrow
70 --> $DIR/capture-analysis-1.rs:31:26
71 |
72LL | println!("{:?}", q);
73 | ^
74
75error: aborting due to 3 previous errors; 1 warning emitted
76
77For more information about this error, try `rustc --explain E0658`.