fork/rust

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

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

master
1.4 KiB58 linesraw
1error[E0658]: attributes on expressions are experimental
2  --> $DIR/by_value.rs:18: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/by_value.rs:21:5
12   |
13LL | /     || {
14LL | |
15LL | |
16LL | |         let p = t.0.0;
17...  |
18LL | |
19LL | |     };
20   | |_____^
21   |
22note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
23  --> $DIR/by_value.rs:24:17
24   |
25LL |         let p = t.0.0;
26   |                 ^^^^^
27note: Capturing t[(1, 0)] -> ImmBorrow
28  --> $DIR/by_value.rs:27:29
29   |
30LL |         println!("{} {:?}", t.1, p);
31   |                             ^^^
32
33error: Min Capture analysis includes:
34  --> $DIR/by_value.rs:21:5
35   |
36LL | /     || {
37LL | |
38LL | |
39LL | |         let p = t.0.0;
40...  |
41LL | |
42LL | |     };
43   | |_____^
44   |
45note: Min Capture t[(0, 0)] -> ByValue
46  --> $DIR/by_value.rs:24:17
47   |
48LL |         let p = t.0.0;
49   |                 ^^^^^
50note: Min Capture t[(1, 0)] -> ImmBorrow
51  --> $DIR/by_value.rs:27:29
52   |
53LL |         println!("{} {:?}", t.1, p);
54   |                             ^^^
55
56error: aborting due to 3 previous errors
57
58For more information about this error, try `rustc --explain E0658`.