fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/repr_packed.rs:14:17 3 | 4LL | let mut 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[E0658]: attributes on expressions are experimental 11 --> $DIR/repr_packed.rs:44:17 12 | 13LL | let mut c = #[rustc_capture_analysis] 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 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 18 19error[E0658]: attributes on expressions are experimental 20 --> $DIR/repr_packed.rs:79:13 21 | 22LL | let c = #[rustc_capture_analysis] 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 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 27 28error: First Pass analysis includes: 29 --> $DIR/repr_packed.rs:17:5 30 | 31LL | / || { 32LL | | 33LL | | 34LL | | let z1: &u8 = &foo.x; 35... | 36LL | | println!("({}, {})", z1, z2); 37LL | | }; 38 | |_____^ 39 | 40note: Capturing foo[] -> ImmBorrow 41 --> $DIR/repr_packed.rs:20:24 42 | 43LL | let z1: &u8 = &foo.x; 44 | ^^^^^ 45note: Capturing foo[] -> MutBorrow 46 --> $DIR/repr_packed.rs:22:32 47 | 48LL | let z2: &mut u8 = &mut foo.y; 49 | ^^^^^ 50 51error: Min Capture analysis includes: 52 --> $DIR/repr_packed.rs:17:5 53 | 54LL | / || { 55LL | | 56LL | | 57LL | | let z1: &u8 = &foo.x; 58... | 59LL | | println!("({}, {})", z1, z2); 60LL | | }; 61 | |_____^ 62 | 63note: Min Capture foo[] -> MutBorrow 64 --> $DIR/repr_packed.rs:22:32 65 | 66LL | let z2: &mut u8 = &mut foo.y; 67 | ^^^^^ 68 69error: First Pass analysis includes: 70 --> $DIR/repr_packed.rs:47:5 71 | 72LL | / || { 73LL | | 74LL | | 75LL | | let z1: &String = &foo.x; 76... | 77LL | | println!("({}, {})", z1, z2); 78LL | | }; 79 | |_____^ 80 | 81note: Capturing foo[] -> ImmBorrow 82 --> $DIR/repr_packed.rs:50:28 83 | 84LL | let z1: &String = &foo.x; 85 | ^^^^^ 86note: Capturing foo[] -> MutBorrow 87 --> $DIR/repr_packed.rs:52:33 88 | 89LL | let z2: &mut u16 = &mut foo.y; 90 | ^^^^^ 91 92error: Min Capture analysis includes: 93 --> $DIR/repr_packed.rs:47:5 94 | 95LL | / || { 96LL | | 97LL | | 98LL | | let z1: &String = &foo.x; 99... | 100LL | | println!("({}, {})", z1, z2); 101LL | | }; 102 | |_____^ 103 | 104note: Min Capture foo[] -> MutBorrow 105 --> $DIR/repr_packed.rs:52:33 106 | 107LL | let z2: &mut u16 = &mut foo.y; 108 | ^^^^^ 109 110error: First Pass analysis includes: 111 --> $DIR/repr_packed.rs:82:5 112 | 113LL | / || { 114LL | | 115LL | | 116LL | | println!("{}", foo.x); 117... | 118LL | | 119LL | | }; 120 | |_____^ 121 | 122note: Capturing foo[] -> ImmBorrow 123 --> $DIR/repr_packed.rs:85:24 124 | 125LL | println!("{}", foo.x); 126 | ^^^^^ 127note: Capturing foo[(0, 0)] -> ByValue 128 --> $DIR/repr_packed.rs:89:18 129 | 130LL | let _z = foo.x; 131 | ^^^^^ 132 133error: Min Capture analysis includes: 134 --> $DIR/repr_packed.rs:82:5 135 | 136LL | / || { 137LL | | 138LL | | 139LL | | println!("{}", foo.x); 140... | 141LL | | 142LL | | }; 143 | |_____^ 144 | 145note: Min Capture foo[] -> ByValue 146 --> $DIR/repr_packed.rs:85:24 147 | 148LL | println!("{}", foo.x); 149 | ^^^^^ foo[] used here 150... 151LL | let _z = foo.x; 152 | ^^^^^ foo[] captured as ByValue here 153 154error: aborting due to 9 previous errors 155 156For more information about this error, try `rustc --explain E0658`.