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