fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: `..` patterns are not allowed here 2 --> $DIR/rest-pat-semantic-disallowed.rs:10:13 3 | 4LL | () => { .. } 5 | ^^ 6... 7LL | let mk_pat!(); 8 | --------- in this macro invocation 9 | 10 = note: only allowed in tuple, tuple struct, and slice patterns 11 12error: `..` patterns are not allowed here 13 --> $DIR/rest-pat-semantic-disallowed.rs:18:9 14 | 15LL | let ..; 16 | ^^ 17 | 18 = note: only allowed in tuple, tuple struct, and slice patterns 19 20error: `..` patterns are not allowed here 21 --> $DIR/rest-pat-semantic-disallowed.rs:21:13 22 | 23LL | let box ..; 24 | ^^ 25 | 26 = note: only allowed in tuple, tuple struct, and slice patterns 27 28error: `..` patterns are not allowed here 29 --> $DIR/rest-pat-semantic-disallowed.rs:25:13 30 | 31LL | 1 | .. => {} 32 | ^^ 33 | 34 = note: only allowed in tuple, tuple struct, and slice patterns 35 36error: `..` patterns are not allowed here 37 --> $DIR/rest-pat-semantic-disallowed.rs:29:10 38 | 39LL | let &..; 40 | ^^ 41 | 42 = note: only allowed in tuple, tuple struct, and slice patterns 43 44error: `..` patterns are not allowed here 45 --> $DIR/rest-pat-semantic-disallowed.rs:30:14 46 | 47LL | let &mut ..; 48 | ^^ 49 | 50 = note: only allowed in tuple, tuple struct, and slice patterns 51 52error: `..` patterns are not allowed here 53 --> $DIR/rest-pat-semantic-disallowed.rs:33:13 54 | 55LL | let x @ ..; 56 | ^^ 57 | 58 = note: only allowed in tuple, tuple struct, and slice patterns 59 60error: `..` patterns are not allowed here 61 --> $DIR/rest-pat-semantic-disallowed.rs:35:17 62 | 63LL | let ref x @ ..; 64 | ^^ 65 | 66 = note: only allowed in tuple, tuple struct, and slice patterns 67 68error: `..` patterns are not allowed here 69 --> $DIR/rest-pat-semantic-disallowed.rs:36:21 70 | 71LL | let ref mut x @ ..; 72 | ^^ 73 | 74 = note: only allowed in tuple, tuple struct, and slice patterns 75 76error: `..` can only be used once per tuple pattern 77 --> $DIR/rest-pat-semantic-disallowed.rs:43:9 78 | 79LL | .., 80 | -- previously used here 81LL | .., 82 | ^^ can only be used once per tuple pattern 83 84error: `..` can only be used once per tuple pattern 85 --> $DIR/rest-pat-semantic-disallowed.rs:44:9 86 | 87LL | .., 88 | -- previously used here 89LL | .., 90LL | .. 91 | ^^ can only be used once per tuple pattern 92 93error: `..` can only be used once per tuple pattern 94 --> $DIR/rest-pat-semantic-disallowed.rs:49:9 95 | 96LL | .., 97 | -- previously used here 98LL | x, 99LL | .. 100 | ^^ can only be used once per tuple pattern 101 102error: `..` can only be used once per tuple struct pattern 103 --> $DIR/rest-pat-semantic-disallowed.rs:59:9 104 | 105LL | .., 106 | -- previously used here 107LL | .., 108 | ^^ can only be used once per tuple struct pattern 109 110error: `..` can only be used once per tuple struct pattern 111 --> $DIR/rest-pat-semantic-disallowed.rs:60:9 112 | 113LL | .., 114 | -- previously used here 115LL | .., 116LL | .. 117 | ^^ can only be used once per tuple struct pattern 118 119error: `..` can only be used once per tuple struct pattern 120 --> $DIR/rest-pat-semantic-disallowed.rs:65:9 121 | 122LL | .., 123 | -- previously used here 124LL | x, 125LL | .. 126 | ^^ can only be used once per tuple struct pattern 127 128error: `..` can only be used once per slice pattern 129 --> $DIR/rest-pat-semantic-disallowed.rs:73:9 130 | 131LL | .., 132 | -- previously used here 133LL | .., 134 | ^^ can only be used once per slice pattern 135 136error: `..` can only be used once per slice pattern 137 --> $DIR/rest-pat-semantic-disallowed.rs:74:9 138 | 139LL | .., 140 | -- previously used here 141LL | .., 142LL | .. 143 | ^^ can only be used once per slice pattern 144 145error: `..` can only be used once per slice pattern 146 --> $DIR/rest-pat-semantic-disallowed.rs:78:17 147 | 148LL | .., 149 | -- previously used here 150LL | ref x @ .., 151 | ^^ can only be used once per slice pattern 152 153error: `..` can only be used once per slice pattern 154 --> $DIR/rest-pat-semantic-disallowed.rs:79:21 155 | 156LL | .., 157 | -- previously used here 158LL | ref x @ .., 159LL | ref mut y @ .., 160 | ^^ can only be used once per slice pattern 161 162error: `..` patterns are not allowed here 163 --> $DIR/rest-pat-semantic-disallowed.rs:80:18 164 | 165LL | (ref z @ ..), 166 | ^^ 167 | 168 = note: only allowed in tuple, tuple struct, and slice patterns 169 170error: `..` can only be used once per slice pattern 171 --> $DIR/rest-pat-semantic-disallowed.rs:81:9 172 | 173LL | .., 174 | -- previously used here 175... 176LL | .. 177 | ^^ can only be used once per slice pattern 178 179error: `..` patterns are not allowed here 180 --> $DIR/rest-pat-semantic-disallowed.rs:17:12 181 | 182LL | fn foo(..: u8) {} 183 | ^^ 184 | 185 = note: only allowed in tuple, tuple struct, and slice patterns 186 187error[E0282]: type annotations needed 188 --> $DIR/rest-pat-semantic-disallowed.rs:33:9 189 | 190LL | let x @ ..; 191 | ^^^^^^ consider giving this pattern a type 192 193error: aborting due to 23 previous errors 194 195For more information about this error, try `rustc --explain E0282`.