]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / feature-gate-capture_disjoint_fields.stderr
CommitLineData
fc512014 1error[E0658]: attributes on expressions are experimental
136023e0 2 --> $DIR/feature-gate-capture_disjoint_fields.rs:8:13
fc512014
XL
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
fc512014 10error: First Pass analysis includes:
136023e0 11 --> $DIR/feature-gate-capture_disjoint_fields.rs:11:5
fc512014
XL
12 |
13LL | / || {
14LL | |
15LL | |
16LL | | println!("This uses new capture analyysis to capture s={}", s);
17LL | |
18LL | |
19LL | | };
20 | |_____^
21 |
22note: Capturing s[] -> ImmBorrow
136023e0 23 --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
fc512014
XL
24 |
25LL | println!("This uses new capture analyysis to capture s={}", s);
26 | ^
27
28error: Min Capture analysis includes:
136023e0 29 --> $DIR/feature-gate-capture_disjoint_fields.rs:11:5
fc512014
XL
30 |
31LL | / || {
32LL | |
33LL | |
34LL | | println!("This uses new capture analyysis to capture s={}", s);
35LL | |
36LL | |
37LL | | };
38 | |_____^
39 |
40note: Min Capture s[] -> ImmBorrow
136023e0 41 --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
fc512014
XL
42 |
43LL | println!("This uses new capture analyysis to capture s={}", s);
44 | ^
45
136023e0 46error: aborting due to 3 previous errors
fc512014
XL
47
48For more information about this error, try `rustc --explain E0658`.