fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
6.0 KiB200 linesraw
1error: a leading `|` is not allowed in a parameter pattern
2  --> $DIR/remove-leading-vert.rs:12:14
3   |
4LL |     fn fun1( | A: E) {}
5   |              ^ help: remove the `|`
6
7error: a leading `|` is not allowed in a parameter pattern
8  --> $DIR/remove-leading-vert.rs:13:14
9   |
10LL |     fn fun2( || A: E) {}
11   |              ^^ help: remove the `||`
12   |
13   = note: alternatives in or-patterns are separated with `|`, not `||`
14
15error: a leading `|` is only allowed in a top-level pattern
16  --> $DIR/remove-leading-vert.rs:14:11
17   |
18LL |     let ( | A): E;
19   |           ^ help: remove the `|`
20
21error: a leading `|` is only allowed in a top-level pattern
22  --> $DIR/remove-leading-vert.rs:15:11
23   |
24LL |     let ( || A): (E);
25   |           ^^ help: remove the `||`
26   |
27   = note: alternatives in or-patterns are separated with `|`, not `||`
28
29error: a leading `|` is only allowed in a top-level pattern
30  --> $DIR/remove-leading-vert.rs:16:11
31   |
32LL |     let ( | A,): (E,);
33   |           ^ help: remove the `|`
34
35error: a leading `|` is only allowed in a top-level pattern
36  --> $DIR/remove-leading-vert.rs:17:11
37   |
38LL |     let [ | A ]: [E; 1];
39   |           ^ help: remove the `|`
40
41error: a leading `|` is only allowed in a top-level pattern
42  --> $DIR/remove-leading-vert.rs:18:11
43   |
44LL |     let [ || A ]: [E; 1];
45   |           ^^ help: remove the `||`
46   |
47   = note: alternatives in or-patterns are separated with `|`, not `||`
48
49error: a leading `|` is only allowed in a top-level pattern
50  --> $DIR/remove-leading-vert.rs:19:13
51   |
52LL |     let TS( | A ): TS;
53   |             ^ help: remove the `|`
54
55error: a leading `|` is only allowed in a top-level pattern
56  --> $DIR/remove-leading-vert.rs:20:13
57   |
58LL |     let TS( || A ): TS;
59   |             ^^ help: remove the `||`
60   |
61   = note: alternatives in or-patterns are separated with `|`, not `||`
62
63error: a leading `|` is only allowed in a top-level pattern
64  --> $DIR/remove-leading-vert.rs:21:17
65   |
66LL |     let NS { f: | A }: NS;
67   |                 ^ help: remove the `|`
68
69error: a leading `|` is only allowed in a top-level pattern
70  --> $DIR/remove-leading-vert.rs:22:17
71   |
72LL |     let NS { f: || A }: NS;
73   |                 ^^ help: remove the `||`
74   |
75   = note: alternatives in or-patterns are separated with `|`, not `||`
76
77error: a trailing `|` is not allowed in an or-pattern
78  --> $DIR/remove-leading-vert.rs:27:13
79   |
80LL |     let ( A | ): E;
81   |           - ^ help: remove the `|`
82   |           |
83   |           while parsing this or-pattern starting here
84
85error: a trailing `|` is not allowed in an or-pattern
86  --> $DIR/remove-leading-vert.rs:28:12
87   |
88LL |     let (a |,): (E,);
89   |          - ^ help: remove the `|`
90   |          |
91   |          while parsing this or-pattern starting here
92
93error: a trailing `|` is not allowed in an or-pattern
94  --> $DIR/remove-leading-vert.rs:29:17
95   |
96LL |     let ( A | B | ): E;
97   |           -     ^ help: remove the `|`
98   |           |
99   |           while parsing this or-pattern starting here
100
101error: a trailing `|` is not allowed in an or-pattern
102  --> $DIR/remove-leading-vert.rs:30:17
103   |
104LL |     let [ A | B | ]: [E; 1];
105   |           -     ^ help: remove the `|`
106   |           |
107   |           while parsing this or-pattern starting here
108
109error: a trailing `|` is not allowed in an or-pattern
110  --> $DIR/remove-leading-vert.rs:31:18
111   |
112LL |     let S { f: B | };
113   |                - ^ help: remove the `|`
114   |                |
115   |                while parsing this or-pattern starting here
116
117error: unexpected token `||` after pattern
118  --> $DIR/remove-leading-vert.rs:32:13
119   |
120LL |     let ( A || B | ): E;
121   |           - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
122   |           |
123   |           while parsing this or-pattern starting here
124
125error: a trailing `|` is not allowed in an or-pattern
126  --> $DIR/remove-leading-vert.rs:32:18
127   |
128LL |     let ( A || B | ): E;
129   |           -      ^ help: remove the `|`
130   |           |
131   |           while parsing this or-pattern starting here
132
133error: a trailing `|` is not allowed in an or-pattern
134  --> $DIR/remove-leading-vert.rs:35:11
135   |
136LL |         A | => {}
137   |         - ^ help: remove the `|`
138   |         |
139   |         while parsing this or-pattern starting here
140
141error: a trailing `|` is not allowed in an or-pattern
142  --> $DIR/remove-leading-vert.rs:36:11
143   |
144LL |         A || => {}
145   |         - ^^ help: remove the `||`
146   |         |
147   |         while parsing this or-pattern starting here
148   |
149   = note: alternatives in or-patterns are separated with `|`, not `||`
150
151error: unexpected token `||` after pattern
152  --> $DIR/remove-leading-vert.rs:37:11
153   |
154LL |         A || B | => {}
155   |         - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
156   |         |
157   |         while parsing this or-pattern starting here
158
159error: a trailing `|` is not allowed in an or-pattern
160  --> $DIR/remove-leading-vert.rs:37:16
161   |
162LL |         A || B | => {}
163   |         -      ^ help: remove the `|`
164   |         |
165   |         while parsing this or-pattern starting here
166
167error: a trailing `|` is not allowed in an or-pattern
168  --> $DIR/remove-leading-vert.rs:39:17
169   |
170LL |         | A | B | => {}
171   |           -     ^ help: remove the `|`
172   |           |
173   |           while parsing this or-pattern starting here
174
175error: a trailing `|` is not allowed in an or-pattern
176  --> $DIR/remove-leading-vert.rs:43:11
177   |
178LL |     let a | : u8 = 0;
179   |         - ^ help: remove the `|`
180   |         |
181   |         while parsing this or-pattern starting here
182
183error: a trailing `|` is not allowed in an or-pattern
184  --> $DIR/remove-leading-vert.rs:44:11
185   |
186LL |     let a | = 0;
187   |         - ^ help: remove the `|`
188   |         |
189   |         while parsing this or-pattern starting here
190
191error: a trailing `|` is not allowed in an or-pattern
192  --> $DIR/remove-leading-vert.rs:45:11
193   |
194LL |     let a | ;
195   |         - ^ help: remove the `|`
196   |         |
197   |         while parsing this or-pattern starting here
198
199error: aborting due to 26 previous errors
200