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