1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/repr_packed.rs:13:17
4 LL | let mut c = #[rustc_capture_analysis]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
10 error[E0658]: attributes on expressions are experimental
11 --> $DIR/repr_packed.rs:44:17
13 LL | let mut c = #[rustc_capture_analysis]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
17 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
19 error[E0658]: attributes on expressions are experimental
20 --> $DIR/repr_packed.rs:79:13
22 LL | let c = #[rustc_capture_analysis]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^
25 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
26 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
28 error: First Pass analysis includes:
29 --> $DIR/repr_packed.rs:16:5
34 LL | | let z1: &u8 = &foo.x;
36 LL | | println!("({}, {})", z1, z2);
40 note: Capturing foo[(0, 0)] -> ImmBorrow
41 --> $DIR/repr_packed.rs:19:24
43 LL | let z1: &u8 = &foo.x;
45 note: Capturing foo[(1, 0)] -> MutBorrow
46 --> $DIR/repr_packed.rs:22:32
48 LL | let z2: &mut u8 = &mut foo.y;
51 error: Min Capture analysis includes:
52 --> $DIR/repr_packed.rs:16:5
57 LL | | let z1: &u8 = &foo.x;
59 LL | | println!("({}, {})", z1, z2);
63 note: Min Capture foo[(0, 0)] -> ImmBorrow
64 --> $DIR/repr_packed.rs:19:24
66 LL | let z1: &u8 = &foo.x;
68 note: Min Capture foo[(1, 0)] -> MutBorrow
69 --> $DIR/repr_packed.rs:22:32
71 LL | let z2: &mut u8 = &mut foo.y;
74 error: First Pass analysis includes:
75 --> $DIR/repr_packed.rs:47:5
80 LL | | let z1: &String = &foo.x;
82 LL | | println!("({}, {})", z1, z2);
86 note: Capturing foo[] -> ImmBorrow
87 --> $DIR/repr_packed.rs:50:28
89 LL | let z1: &String = &foo.x;
91 note: Capturing foo[] -> MutBorrow
92 --> $DIR/repr_packed.rs:52:33
94 LL | let z2: &mut u16 = &mut foo.y;
97 error: Min Capture analysis includes:
98 --> $DIR/repr_packed.rs:47:5
103 LL | | let z1: &String = &foo.x;
105 LL | | println!("({}, {})", z1, z2);
109 note: Min Capture foo[] -> MutBorrow
110 --> $DIR/repr_packed.rs:52:33
112 LL | let z2: &mut u16 = &mut foo.y;
115 error: First Pass analysis includes:
116 --> $DIR/repr_packed.rs:82:5
121 LL | | println!("{}", foo.x);
127 note: Capturing foo[] -> ImmBorrow
128 --> $DIR/repr_packed.rs:85:24
130 LL | println!("{}", foo.x);
132 note: Capturing foo[(0, 0)] -> ByValue
133 --> $DIR/repr_packed.rs:89:18
138 error: Min Capture analysis includes:
139 --> $DIR/repr_packed.rs:82:5
144 LL | | println!("{}", foo.x);
150 note: Min Capture foo[] -> ByValue
151 --> $DIR/repr_packed.rs:85:24
153 LL | println!("{}", foo.x);
154 | ^^^^^ foo[] used here
157 | ^^^^^ foo[] captured as ByValue here
159 error: aborting due to 9 previous errors
161 For more information about this error, try `rustc --explain E0658`.