+error: top-level or-patterns are not allowed in `let` bindings
+ --> $DIR/feature-gate-or_patterns.rs:28:9
+ |
+LL | let | A | B;
+ | ^^^^^^^ help: wrap the pattern in parentheses: `(A | B)`
+
+error: top-level or-patterns are not allowed in `let` bindings
+ --> $DIR/feature-gate-or_patterns.rs:30:9
+ |
+LL | let A | B;
+ | ^^^^^ help: wrap the pattern in parentheses: `(A | B)`
+
error[E0658]: or-patterns syntax is experimental
--> $DIR/feature-gate-or_patterns.rs:5:14
|
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:28:11
+ --> $DIR/feature-gate-or_patterns.rs:28:9
|
LL | let | A | B;
- | ^^^^^
+ | ^^^^^^^
|
= note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:29:9
+ --> $DIR/feature-gate-or_patterns.rs:30:9
|
LL | let A | B;
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:30:11
+ --> $DIR/feature-gate-or_patterns.rs:32:9
|
LL | for | A | B in 0 {}
- | ^^^^^
+ | ^^^^^^^
|
= note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:31:9
+ --> $DIR/feature-gate-or_patterns.rs:33:9
|
LL | for A | B in 0 {}
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:32:13
+ --> $DIR/feature-gate-or_patterns.rs:34:13
|
LL | fn fun((A | B): _) {}
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:33:15
+ --> $DIR/feature-gate-or_patterns.rs:35:15
|
LL | let _ = |(A | B): u8| ();
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:34:10
+ --> $DIR/feature-gate-or_patterns.rs:36:10
|
LL | let (A | B);
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:35:10
+ --> $DIR/feature-gate-or_patterns.rs:37:10
|
LL | let (A | B,);
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:36:11
+ --> $DIR/feature-gate-or_patterns.rs:38:11
|
LL | let A(B | C);
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:37:14
+ --> $DIR/feature-gate-or_patterns.rs:39:14
|
LL | let E::V(B | C);
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:38:17
+ --> $DIR/feature-gate-or_patterns.rs:40:17
|
LL | let S { f1: B | C, f2 };
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:39:20
+ --> $DIR/feature-gate-or_patterns.rs:41:20
|
LL | let E::V { f1: B | C, f2 };
| ^^^^^
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
error[E0658]: or-patterns syntax is experimental
- --> $DIR/feature-gate-or_patterns.rs:40:10
+ --> $DIR/feature-gate-or_patterns.rs:42:10
|
LL | let [A | B];
| ^^^^^
= note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
= help: add `#![feature(or_patterns)]` to the crate attributes to enable
-error: aborting due to 19 previous errors
+error: aborting due to 21 previous errors
For more information about this error, try `rustc --explain E0658`.