fork/rust

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

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

master
1.2 KiB48 linesraw
1error[E0658]: attributes on expressions are experimental
2  --> $DIR/multilevel-path-1.rs:22: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/multilevel-path-1.rs:25:5
12   |
13LL | /     || {
14LL | |
15LL | |
16LL | |         let wp = &w.p;
17...  |
18LL | |         println!("{}", wp.x);
19LL | |     };
20   | |_____^
21   |
22note: Capturing w[(0, 0)] -> ImmBorrow
23  --> $DIR/multilevel-path-1.rs:28:19
24   |
25LL |         let wp = &w.p;
26   |                   ^^^
27
28error: Min Capture analysis includes:
29  --> $DIR/multilevel-path-1.rs:25:5
30   |
31LL | /     || {
32LL | |
33LL | |
34LL | |         let wp = &w.p;
35...  |
36LL | |         println!("{}", wp.x);
37LL | |     };
38   | |_____^
39   |
40note: Min Capture w[(0, 0)] -> ImmBorrow
41  --> $DIR/multilevel-path-1.rs:28:19
42   |
43LL |         let wp = &w.p;
44   |                   ^^^
45
46error: aborting due to 3 previous errors
47
48For more information about this error, try `rustc --explain E0658`.