1 error: top-level or-patterns are not allowed in function parameters
2 --> $DIR/remove-leading-vert.rs:11:14
4 LL | fn fun1( | A: E) {}
5 | ^^^ help: remove the `|`: `A`
7 error: unexpected `||` before function parameter
8 --> $DIR/remove-leading-vert.rs:12:14
10 LL | fn fun2( || A: E) {}
11 | ^^ help: remove the `||`
13 = note: alternatives in or-patterns are separated with `|`, not `||`
15 error: unexpected token `||` in pattern
16 --> $DIR/remove-leading-vert.rs:14:11
18 LL | let ( || A): (E);
19 | ^^ help: use a single `|` to separate multiple alternative patterns: `|`
21 error: unexpected token `||` in pattern
22 --> $DIR/remove-leading-vert.rs:17:11
24 LL | let [ || A ]: [E; 1];
25 | ^^ help: use a single `|` to separate multiple alternative patterns: `|`
27 error: unexpected token `||` in pattern
28 --> $DIR/remove-leading-vert.rs:19:13
30 LL | let TS( || A ): TS;
31 | ^^ help: use a single `|` to separate multiple alternative patterns: `|`
33 error: unexpected token `||` in pattern
34 --> $DIR/remove-leading-vert.rs:21:17
36 LL | let NS { f: || A }: NS;
37 | ^^ help: use a single `|` to separate multiple alternative patterns: `|`
39 error: a trailing `|` is not allowed in an or-pattern
40 --> $DIR/remove-leading-vert.rs:26:13
43 | - ^ help: remove the `|`
45 | while parsing this or-pattern starting here
47 error: a trailing `|` is not allowed in an or-pattern
48 --> $DIR/remove-leading-vert.rs:27:12
50 LL | let (a |,): (E,);
51 | - ^ help: remove the `|`
53 | while parsing this or-pattern starting here
55 error: a trailing `|` is not allowed in an or-pattern
56 --> $DIR/remove-leading-vert.rs:28:17
58 LL | let ( A | B | ): E;
59 | - ^ help: remove the `|`
61 | while parsing this or-pattern starting here
63 error: a trailing `|` is not allowed in an or-pattern
64 --> $DIR/remove-leading-vert.rs:29:17
66 LL | let [ A | B | ]: [E; 1];
67 | - ^ help: remove the `|`
69 | while parsing this or-pattern starting here
71 error: a trailing `|` is not allowed in an or-pattern
72 --> $DIR/remove-leading-vert.rs:30:18
74 LL | let S { f: B | };
75 | - ^ help: remove the `|`
77 | while parsing this or-pattern starting here
79 error: unexpected token `||` in pattern
80 --> $DIR/remove-leading-vert.rs:31:13
82 LL | let ( A || B | ): E;
83 | - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
85 | while parsing this or-pattern starting here
87 error: a trailing `|` is not allowed in an or-pattern
88 --> $DIR/remove-leading-vert.rs:31:18
90 LL | let ( A || B | ): E;
91 | - ^ help: remove the `|`
93 | while parsing this or-pattern starting here
95 error: a trailing `|` is not allowed in an or-pattern
96 --> $DIR/remove-leading-vert.rs:34:11
99 | - ^ help: remove the `|`
101 | while parsing this or-pattern starting here
103 error: a trailing `|` is not allowed in an or-pattern
104 --> $DIR/remove-leading-vert.rs:35:11
107 | - ^^ help: remove the `||`
109 | while parsing this or-pattern starting here
111 = note: alternatives in or-patterns are separated with `|`, not `||`
113 error: unexpected token `||` in pattern
114 --> $DIR/remove-leading-vert.rs:36:11
117 | - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
119 | while parsing this or-pattern starting here
121 error: a trailing `|` is not allowed in an or-pattern
122 --> $DIR/remove-leading-vert.rs:36:16
125 | - ^ help: remove the `|`
127 | while parsing this or-pattern starting here
129 error: a trailing `|` is not allowed in an or-pattern
130 --> $DIR/remove-leading-vert.rs:38:17
133 | - ^ help: remove the `|`
135 | while parsing this or-pattern starting here
137 error: a trailing `|` is not allowed in an or-pattern
138 --> $DIR/remove-leading-vert.rs:45:11
140 LL | let a | : u8 = 0;
141 | - ^ help: remove the `|`
143 | while parsing this or-pattern starting here
145 error: a trailing `|` is not allowed in an or-pattern
146 --> $DIR/remove-leading-vert.rs:46:11
149 | - ^ help: remove the `|`
151 | while parsing this or-pattern starting here
153 error: a trailing `|` is not allowed in an or-pattern
154 --> $DIR/remove-leading-vert.rs:47:11
157 | - ^ help: remove the `|`
159 | while parsing this or-pattern starting here
161 error: aborting due to 21 previous errors