1 error[E0658]: or-patterns syntax is experimental
2 --> $DIR/feature-gate-or_patterns.rs:5:14
4 LL | Some(0 | 1 | 2) => {}
7 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
8 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
10 error[E0658]: or-patterns syntax is experimental
11 --> $DIR/feature-gate-or_patterns.rs:28:11
16 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
17 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
19 error[E0658]: or-patterns syntax is experimental
20 --> $DIR/feature-gate-or_patterns.rs:29:9
25 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
26 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
28 error[E0658]: or-patterns syntax is experimental
29 --> $DIR/feature-gate-or_patterns.rs:30:11
31 LL | for | A | B in 0 {}
34 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
35 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
37 error[E0658]: or-patterns syntax is experimental
38 --> $DIR/feature-gate-or_patterns.rs:31:9
40 LL | for A | B in 0 {}
43 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
44 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
46 error[E0658]: or-patterns syntax is experimental
47 --> $DIR/feature-gate-or_patterns.rs:32:13
49 LL | fn fun((A | B): _) {}
52 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
53 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
55 error[E0658]: or-patterns syntax is experimental
56 --> $DIR/feature-gate-or_patterns.rs:33:15
58 LL | let _ = |(A | B): u8| ();
61 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
62 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
64 error[E0658]: or-patterns syntax is experimental
65 --> $DIR/feature-gate-or_patterns.rs:34:10
70 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
71 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
73 error[E0658]: or-patterns syntax is experimental
74 --> $DIR/feature-gate-or_patterns.rs:35:10
79 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
80 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
82 error[E0658]: or-patterns syntax is experimental
83 --> $DIR/feature-gate-or_patterns.rs:36:11
88 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
89 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
91 error[E0658]: or-patterns syntax is experimental
92 --> $DIR/feature-gate-or_patterns.rs:37:14
97 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
98 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
100 error[E0658]: or-patterns syntax is experimental
101 --> $DIR/feature-gate-or_patterns.rs:38:17
103 LL | let S { f1: B | C, f2 };
106 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
107 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
109 error[E0658]: or-patterns syntax is experimental
110 --> $DIR/feature-gate-or_patterns.rs:39:20
112 LL | let E::V { f1: B | C, f2 };
115 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
116 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
118 error[E0658]: or-patterns syntax is experimental
119 --> $DIR/feature-gate-or_patterns.rs:40:10
124 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
125 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
127 error[E0658]: or-patterns syntax is experimental
128 --> $DIR/feature-gate-or_patterns.rs:16:14
130 LL | accept_pat!((p | q));
133 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
134 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
136 error[E0658]: or-patterns syntax is experimental
137 --> $DIR/feature-gate-or_patterns.rs:17:14
139 LL | accept_pat!((p | q,));
142 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
143 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
145 error[E0658]: or-patterns syntax is experimental
146 --> $DIR/feature-gate-or_patterns.rs:18:16
148 LL | accept_pat!(TS(p | q));
151 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
152 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
154 error[E0658]: or-patterns syntax is experimental
155 --> $DIR/feature-gate-or_patterns.rs:19:21
157 LL | accept_pat!(NS { f: p | q });
160 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
161 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
163 error[E0658]: or-patterns syntax is experimental
164 --> $DIR/feature-gate-or_patterns.rs:20:14
166 LL | accept_pat!([p | q]);
169 = note: for more information, see https://github.com/rust-lang/rust/issues/54883
170 = help: add `#![feature(or_patterns)]` to the crate attributes to enable
172 error: aborting due to 19 previous errors
174 For more information about this error, try `rustc --explain E0658`.