]> git.proxmox.com Git - rustc.git/blame - src/test/ui/or-patterns/feature-gate-or_patterns.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / or-patterns / feature-gate-or_patterns.stderr
CommitLineData
6a06907d
XL
1error: top-level or-patterns are not allowed in `let` bindings
2 --> $DIR/feature-gate-or_patterns.rs:28:9
3 |
4LL | let | A | B;
5 | ^^^^^^^ help: wrap the pattern in parentheses: `(A | B)`
6
7error: top-level or-patterns are not allowed in `let` bindings
8 --> $DIR/feature-gate-or_patterns.rs:30:9
9 |
10LL | let A | B;
11 | ^^^^^ help: wrap the pattern in parentheses: `(A | B)`
12
e1599b0c
XL
13error[E0658]: or-patterns syntax is experimental
14 --> $DIR/feature-gate-or_patterns.rs:5:14
15 |
16LL | Some(0 | 1 | 2) => {}
17 | ^^^^^^^^^
18 |
74b04a01 19 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
20 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
21
22error[E0658]: or-patterns syntax is experimental
6a06907d 23 --> $DIR/feature-gate-or_patterns.rs:28:9
e1599b0c
XL
24 |
25LL | let | A | B;
6a06907d 26 | ^^^^^^^
e1599b0c 27 |
74b04a01 28 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
29 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
30
31error[E0658]: or-patterns syntax is experimental
6a06907d 32 --> $DIR/feature-gate-or_patterns.rs:30:9
e1599b0c
XL
33 |
34LL | let A | B;
35 | ^^^^^
36 |
74b04a01 37 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
38 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
39
40error[E0658]: or-patterns syntax is experimental
6a06907d 41 --> $DIR/feature-gate-or_patterns.rs:32:9
e1599b0c
XL
42 |
43LL | for | A | B in 0 {}
6a06907d 44 | ^^^^^^^
e1599b0c 45 |
74b04a01 46 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
47 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
48
49error[E0658]: or-patterns syntax is experimental
6a06907d 50 --> $DIR/feature-gate-or_patterns.rs:33:9
e1599b0c
XL
51 |
52LL | for A | B in 0 {}
53 | ^^^^^
54 |
74b04a01 55 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
56 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
57
58error[E0658]: or-patterns syntax is experimental
6a06907d 59 --> $DIR/feature-gate-or_patterns.rs:34:13
e1599b0c
XL
60 |
61LL | fn fun((A | B): _) {}
62 | ^^^^^
63 |
74b04a01 64 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
65 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
66
67error[E0658]: or-patterns syntax is experimental
6a06907d 68 --> $DIR/feature-gate-or_patterns.rs:35:15
e1599b0c
XL
69 |
70LL | let _ = |(A | B): u8| ();
71 | ^^^^^
72 |
74b04a01 73 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
74 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
75
76error[E0658]: or-patterns syntax is experimental
6a06907d 77 --> $DIR/feature-gate-or_patterns.rs:36:10
e1599b0c
XL
78 |
79LL | let (A | B);
80 | ^^^^^
81 |
74b04a01 82 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
83 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
84
85error[E0658]: or-patterns syntax is experimental
6a06907d 86 --> $DIR/feature-gate-or_patterns.rs:37:10
e1599b0c
XL
87 |
88LL | let (A | B,);
89 | ^^^^^
90 |
74b04a01 91 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
92 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
93
94error[E0658]: or-patterns syntax is experimental
6a06907d 95 --> $DIR/feature-gate-or_patterns.rs:38:11
e1599b0c
XL
96 |
97LL | let A(B | C);
98 | ^^^^^
99 |
74b04a01 100 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
101 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
102
103error[E0658]: or-patterns syntax is experimental
6a06907d 104 --> $DIR/feature-gate-or_patterns.rs:39:14
e1599b0c
XL
105 |
106LL | let E::V(B | C);
107 | ^^^^^
108 |
74b04a01 109 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
110 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
111
112error[E0658]: or-patterns syntax is experimental
6a06907d 113 --> $DIR/feature-gate-or_patterns.rs:40:17
e1599b0c
XL
114 |
115LL | let S { f1: B | C, f2 };
116 | ^^^^^
117 |
74b04a01 118 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
119 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
120
121error[E0658]: or-patterns syntax is experimental
6a06907d 122 --> $DIR/feature-gate-or_patterns.rs:41:20
e1599b0c
XL
123 |
124LL | let E::V { f1: B | C, f2 };
125 | ^^^^^
126 |
74b04a01 127 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
128 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
129
130error[E0658]: or-patterns syntax is experimental
6a06907d 131 --> $DIR/feature-gate-or_patterns.rs:42:10
e1599b0c
XL
132 |
133LL | let [A | B];
134 | ^^^^^
135 |
74b04a01 136 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
137 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
138
139error[E0658]: or-patterns syntax is experimental
140 --> $DIR/feature-gate-or_patterns.rs:16:14
141 |
142LL | accept_pat!((p | q));
143 | ^^^^^
144 |
74b04a01 145 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
146 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
147
148error[E0658]: or-patterns syntax is experimental
149 --> $DIR/feature-gate-or_patterns.rs:17:14
150 |
151LL | accept_pat!((p | q,));
152 | ^^^^^
153 |
74b04a01 154 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
155 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
156
157error[E0658]: or-patterns syntax is experimental
158 --> $DIR/feature-gate-or_patterns.rs:18:16
159 |
160LL | accept_pat!(TS(p | q));
161 | ^^^^^
162 |
74b04a01 163 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
164 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
165
166error[E0658]: or-patterns syntax is experimental
167 --> $DIR/feature-gate-or_patterns.rs:19:21
168 |
169LL | accept_pat!(NS { f: p | q });
170 | ^^^^^
171 |
74b04a01 172 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
173 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
174
175error[E0658]: or-patterns syntax is experimental
176 --> $DIR/feature-gate-or_patterns.rs:20:14
177 |
178LL | accept_pat!([p | q]);
179 | ^^^^^
180 |
74b04a01 181 = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
e1599b0c
XL
182 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
183
6a06907d 184error: aborting due to 21 previous errors
e1599b0c
XL
185
186For more information about this error, try `rustc --explain E0658`.