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