fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/destructure_patterns.rs:10: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[E0658]: attributes on expressions are experimental 11 --> $DIR/destructure_patterns.rs:38:13 12 | 13LL | let 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/destructure_patterns.rs:58: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/destructure_patterns.rs:13:5 30 | 31LL | / || { 32LL | | 33LL | | 34LL | | let [a, b, .., e] = arr; 35... | 36LL | | assert_eq!(e, "E"); 37LL | | }; 38 | |_____^ 39 | 40note: Capturing arr[Index] -> ByValue 41 --> $DIR/destructure_patterns.rs:16:29 42 | 43LL | let [a, b, .., e] = arr; 44 | ^^^ 45note: Capturing arr[Index] -> ByValue 46 --> $DIR/destructure_patterns.rs:16:29 47 | 48LL | let [a, b, .., e] = arr; 49 | ^^^ 50note: Capturing arr[Index] -> ByValue 51 --> $DIR/destructure_patterns.rs:16:29 52 | 53LL | let [a, b, .., e] = arr; 54 | ^^^ 55 56error: Min Capture analysis includes: 57 --> $DIR/destructure_patterns.rs:13:5 58 | 59LL | / || { 60LL | | 61LL | | 62LL | | let [a, b, .., e] = arr; 63... | 64LL | | assert_eq!(e, "E"); 65LL | | }; 66 | |_____^ 67 | 68note: Min Capture arr[] -> ByValue 69 --> $DIR/destructure_patterns.rs:16:29 70 | 71LL | let [a, b, .., e] = arr; 72 | ^^^ 73 74error: First Pass analysis includes: 75 --> $DIR/destructure_patterns.rs:41:5 76 | 77LL | / || { 78LL | | 79LL | | 80LL | | let Point { x: ref mut x, y: _, id: moved_id } = p; 81... | 82LL | | println!("{}, {}", x, moved_id); 83LL | | }; 84 | |_____^ 85 | 86note: Capturing p[(0, 0)] -> MutBorrow 87 --> $DIR/destructure_patterns.rs:44:58 88 | 89LL | let Point { x: ref mut x, y: _, id: moved_id } = p; 90 | ^ 91note: Capturing p[(2, 0)] -> ByValue 92 --> $DIR/destructure_patterns.rs:44:58 93 | 94LL | let Point { x: ref mut x, y: _, id: moved_id } = p; 95 | ^ 96 97error: Min Capture analysis includes: 98 --> $DIR/destructure_patterns.rs:41:5 99 | 100LL | / || { 101LL | | 102LL | | 103LL | | let Point { x: ref mut x, y: _, id: moved_id } = p; 104... | 105LL | | println!("{}, {}", x, moved_id); 106LL | | }; 107 | |_____^ 108 | 109note: Min Capture p[(0, 0)] -> MutBorrow 110 --> $DIR/destructure_patterns.rs:44:58 111 | 112LL | let Point { x: ref mut x, y: _, id: moved_id } = p; 113 | ^ 114note: Min Capture p[(2, 0)] -> ByValue 115 --> $DIR/destructure_patterns.rs:44:58 116 | 117LL | let Point { x: ref mut x, y: _, id: moved_id } = p; 118 | ^ 119 120error: First Pass analysis includes: 121 --> $DIR/destructure_patterns.rs:61:5 122 | 123LL | / || { 124LL | | 125LL | | 126LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t; 127... | 128LL | | println!("{}, {} {}", x, ref_str, moved_s); 129LL | | }; 130 | |_____^ 131 | 132note: Capturing t[(0, 0)] -> MutBorrow 133 --> $DIR/destructure_patterns.rs:64:54 134 | 135LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 136 | ^ 137note: Capturing t[(1, 0)] -> ImmBorrow 138 --> $DIR/destructure_patterns.rs:64:54 139 | 140LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 141 | ^ 142note: Capturing t[(2, 0),(0, 0)] -> ByValue 143 --> $DIR/destructure_patterns.rs:64:54 144 | 145LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 146 | ^ 147 148error: Min Capture analysis includes: 149 --> $DIR/destructure_patterns.rs:61:5 150 | 151LL | / || { 152LL | | 153LL | | 154LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t; 155... | 156LL | | println!("{}, {} {}", x, ref_str, moved_s); 157LL | | }; 158 | |_____^ 159 | 160note: Min Capture t[(0, 0)] -> MutBorrow 161 --> $DIR/destructure_patterns.rs:64:54 162 | 163LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 164 | ^ 165note: Min Capture t[(1, 0)] -> ImmBorrow 166 --> $DIR/destructure_patterns.rs:64:54 167 | 168LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 169 | ^ 170note: Min Capture t[(2, 0),(0, 0)] -> ByValue 171 --> $DIR/destructure_patterns.rs:64:54 172 | 173LL | let (ref mut x, ref ref_str, (moved_s, _)) = t; 174 | ^ 175 176error: aborting due to 9 previous errors 177 178For more information about this error, try `rustc --explain E0658`.