fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB61 linesraw
1error[E0658]: attributes on expressions are experimental
2  --> $DIR/deep-multilevel-struct.rs:34: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
10error: First Pass analysis includes:
11  --> $DIR/deep-multilevel-struct.rs:37:5
12   |
13LL | /     || {
14LL | |
15LL | |
16LL | |         let x = &p.a.p.x;
17...  |
18LL | |
19LL | |     };
20   | |_____^
21   |
22note: Capturing p[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
23  --> $DIR/deep-multilevel-struct.rs:40:18
24   |
25LL |         let x = &p.a.p.x;
26   |                  ^^^^^^^
27note: Capturing p[(1, 0),(1, 0),(1, 0)] -> MutBorrow
28  --> $DIR/deep-multilevel-struct.rs:42:9
29   |
30LL |         p.b.q.y = 9;
31   |         ^^^^^^^
32note: Capturing p[] -> ImmBorrow
33  --> $DIR/deep-multilevel-struct.rs:45:26
34   |
35LL |         println!("{:?}", p);
36   |                          ^
37
38error: Min Capture analysis includes:
39  --> $DIR/deep-multilevel-struct.rs:37:5
40   |
41LL | /     || {
42LL | |
43LL | |
44LL | |         let x = &p.a.p.x;
45...  |
46LL | |
47LL | |     };
48   | |_____^
49   |
50note: Min Capture p[] -> MutBorrow
51  --> $DIR/deep-multilevel-struct.rs:42:9
52   |
53LL |         p.b.q.y = 9;
54   |         ^^^^^^^ p[] captured as MutBorrow here
55...
56LL |         println!("{:?}", p);
57   |                          ^ p[] used here
58
59error: aborting due to 3 previous errors
60
61For more information about this error, try `rustc --explain E0658`.