1
1
error[E0658]: attributes on expressions are experimental
2
- --> $DIR/capture-analysis-1.rs:17 :13
2
+ --> $DIR/capture-analysis-1.rs:15 :13
3
3
|
4
4
LL | let c = #[rustc_capture_analysis]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
8
8
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
9
9
10
- warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11
- --> $DIR/capture-analysis-1.rs:1: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
10
error: First Pass analysis includes:
20
- --> $DIR/capture-analysis-1.rs:20 :5
11
+ --> $DIR/capture-analysis-1.rs:18 :5
21
12
|
22
13
LL | / || {
23
14
LL | |
@@ -29,28 +20,28 @@ LL | | };
29
20
| |_____^
30
21
|
31
22
note: Capturing p[] -> ImmBorrow
32
- --> $DIR/capture-analysis-1.rs:23 :26
23
+ --> $DIR/capture-analysis-1.rs:21 :26
33
24
|
34
25
LL | println!("{:?}", p);
35
26
| ^
36
27
note: Capturing p[(0, 0)] -> ImmBorrow
37
- --> $DIR/capture-analysis-1.rs:26 :26
28
+ --> $DIR/capture-analysis-1.rs:24 :26
38
29
|
39
30
LL | println!("{:?}", p.x);
40
31
| ^^^
41
32
note: Capturing q[(0, 0)] -> ImmBorrow
42
- --> $DIR/capture-analysis-1.rs:29 :26
33
+ --> $DIR/capture-analysis-1.rs:27 :26
43
34
|
44
35
LL | println!("{:?}", q.x);
45
36
| ^^^
46
37
note: Capturing q[] -> ImmBorrow
47
- --> $DIR/capture-analysis-1.rs:31 :26
38
+ --> $DIR/capture-analysis-1.rs:29 :26
48
39
|
49
40
LL | println!("{:?}", q);
50
41
| ^
51
42
52
43
error: Min Capture analysis includes:
53
- --> $DIR/capture-analysis-1.rs:20 :5
44
+ --> $DIR/capture-analysis-1.rs:18 :5
54
45
|
55
46
LL | / || {
56
47
LL | |
@@ -62,16 +53,16 @@ LL | | };
62
53
| |_____^
63
54
|
64
55
note: Min Capture p[] -> ImmBorrow
65
- --> $DIR/capture-analysis-1.rs:23 :26
56
+ --> $DIR/capture-analysis-1.rs:21 :26
66
57
|
67
58
LL | println!("{:?}", p);
68
59
| ^
69
60
note: Min Capture q[] -> ImmBorrow
70
- --> $DIR/capture-analysis-1.rs:31 :26
61
+ --> $DIR/capture-analysis-1.rs:29 :26
71
62
|
72
63
LL | println!("{:?}", q);
73
64
| ^
74
65
75
- error: aborting due to 3 previous errors; 1 warning emitted
66
+ error: aborting due to 3 previous errors
76
67
77
68
For more information about this error, try `rustc --explain E0658`.
0 commit comments