]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/by_value.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / by_value.stderr
1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/by_value.rs:22: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 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11 --> $DIR/by_value.rs:5: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/by_value.rs:25:5
21 |
22 LL | / || {
23 LL | |
24 LL | |
25 LL | | let p = t.0.0;
26 ... |
27 LL | |
28 LL | | };
29 | |_____^
30 |
31 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
32 --> $DIR/by_value.rs:28:17
33 |
34 LL | let p = t.0.0;
35 | ^^^^^
36 note: Capturing t[(0, 0)] -> ByValue
37 --> $DIR/by_value.rs:28:17
38 |
39 LL | let p = t.0.0;
40 | ^^^^^
41 note: Capturing t[(1, 0)] -> ImmBorrow
42 --> $DIR/by_value.rs:32:29
43 |
44 LL | println!("{} {:?}", t.1, p);
45 | ^^^
46
47 error: Min Capture analysis includes:
48 --> $DIR/by_value.rs:25:5
49 |
50 LL | / || {
51 LL | |
52 LL | |
53 LL | | let p = t.0.0;
54 ... |
55 LL | |
56 LL | | };
57 | |_____^
58 |
59 note: Min Capture t[(0, 0)] -> ByValue
60 --> $DIR/by_value.rs:28:17
61 |
62 LL | let p = t.0.0;
63 | ^^^^^
64 note: Min Capture t[(1, 0)] -> ImmBorrow
65 --> $DIR/by_value.rs:32:29
66 |
67 LL | println!("{} {:?}", t.1, p);
68 | ^^^
69
70 error: aborting due to 3 previous errors; 1 warning emitted
71
72 For more information about this error, try `rustc --explain E0658`.