]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / simple-struct-min-capture.stderr
1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/simple-struct-min-capture.rs:27:17
3 |
4 LL | let mut 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 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11 --> $DIR/simple-struct-min-capture.rs:3:12
12 |
13 LL | #![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
19 error: First Pass analysis includes:
20 --> $DIR/simple-struct-min-capture.rs:30:5
21 |
22 LL | / || {
23 LL | |
24 LL | |
25 LL | | p.x += 10;
26 ... |
27 LL | |
28 LL | | };
29 | |_____^
30 |
31 note: Capturing p[(0, 0)] -> MutBorrow
32 --> $DIR/simple-struct-min-capture.rs:33:9
33 |
34 LL | p.x += 10;
35 | ^^^
36 note: Capturing p[] -> ImmBorrow
37 --> $DIR/simple-struct-min-capture.rs:36:26
38 |
39 LL | println!("{:?}", p);
40 | ^
41
42 error: Min Capture analysis includes:
43 --> $DIR/simple-struct-min-capture.rs:30:5
44 |
45 LL | / || {
46 LL | |
47 LL | |
48 LL | | p.x += 10;
49 ... |
50 LL | |
51 LL | | };
52 | |_____^
53 |
54 note: Min Capture p[] -> MutBorrow
55 --> $DIR/simple-struct-min-capture.rs:33:9
56 |
57 LL | p.x += 10;
58 | ^^^
59
60 error: aborting due to 3 previous errors; 1 warning emitted
61
62 For more information about this error, try `rustc --explain E0658`.