]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error: top-level or-patterns are not allowed in `let` bindings |
2 | --> $DIR/feature-gate-or_patterns.rs:28:9 | |
3 | | | |
4 | LL | let | A | B; | |
5 | | ^^^^^^^ help: wrap the pattern in parentheses: `(A | B)` | |
6 | ||
7 | error: top-level or-patterns are not allowed in `let` bindings | |
8 | --> $DIR/feature-gate-or_patterns.rs:30:9 | |
9 | | | |
10 | LL | let A | B; | |
11 | | ^^^^^ help: wrap the pattern in parentheses: `(A | B)` | |
12 | ||
e1599b0c XL |
13 | error[E0658]: or-patterns syntax is experimental |
14 | --> $DIR/feature-gate-or_patterns.rs:5:14 | |
15 | | | |
16 | LL | 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 | ||
22 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 23 | --> $DIR/feature-gate-or_patterns.rs:28:9 |
e1599b0c XL |
24 | | |
25 | LL | 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 | ||
31 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 32 | --> $DIR/feature-gate-or_patterns.rs:30:9 |
e1599b0c XL |
33 | | |
34 | LL | 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 | ||
40 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 41 | --> $DIR/feature-gate-or_patterns.rs:32:9 |
e1599b0c XL |
42 | | |
43 | LL | 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 | ||
49 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 50 | --> $DIR/feature-gate-or_patterns.rs:33:9 |
e1599b0c XL |
51 | | |
52 | LL | 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 | ||
58 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 59 | --> $DIR/feature-gate-or_patterns.rs:34:13 |
e1599b0c XL |
60 | | |
61 | LL | 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 | ||
67 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 68 | --> $DIR/feature-gate-or_patterns.rs:35:15 |
e1599b0c XL |
69 | | |
70 | LL | 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 | ||
76 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 77 | --> $DIR/feature-gate-or_patterns.rs:36:10 |
e1599b0c XL |
78 | | |
79 | LL | 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 | ||
85 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 86 | --> $DIR/feature-gate-or_patterns.rs:37:10 |
e1599b0c XL |
87 | | |
88 | LL | 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 | ||
94 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 95 | --> $DIR/feature-gate-or_patterns.rs:38:11 |
e1599b0c XL |
96 | | |
97 | LL | 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 | ||
103 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 104 | --> $DIR/feature-gate-or_patterns.rs:39:14 |
e1599b0c XL |
105 | | |
106 | LL | 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 | ||
112 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 113 | --> $DIR/feature-gate-or_patterns.rs:40:17 |
e1599b0c XL |
114 | | |
115 | LL | 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 | ||
121 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 122 | --> $DIR/feature-gate-or_patterns.rs:41:20 |
e1599b0c XL |
123 | | |
124 | LL | 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 | ||
130 | error[E0658]: or-patterns syntax is experimental | |
6a06907d | 131 | --> $DIR/feature-gate-or_patterns.rs:42:10 |
e1599b0c XL |
132 | | |
133 | LL | 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 | ||
139 | error[E0658]: or-patterns syntax is experimental | |
140 | --> $DIR/feature-gate-or_patterns.rs:16:14 | |
141 | | | |
142 | LL | 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 | ||
148 | error[E0658]: or-patterns syntax is experimental | |
149 | --> $DIR/feature-gate-or_patterns.rs:17:14 | |
150 | | | |
151 | LL | 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 | ||
157 | error[E0658]: or-patterns syntax is experimental | |
158 | --> $DIR/feature-gate-or_patterns.rs:18:16 | |
159 | | | |
160 | LL | 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 | ||
166 | error[E0658]: or-patterns syntax is experimental | |
167 | --> $DIR/feature-gate-or_patterns.rs:19:21 | |
168 | | | |
169 | LL | 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 | ||
175 | error[E0658]: or-patterns syntax is experimental | |
176 | --> $DIR/feature-gate-or_patterns.rs:20:14 | |
177 | | | |
178 | LL | 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 | 184 | error: aborting due to 21 previous errors |
e1599b0c XL |
185 | |
186 | For more information about this error, try `rustc --explain E0658`. |