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