1 error: expected expression, found `let` statement
2 --> $DIR/feature-gate.rs:55:20
4 LL | #[cfg(FALSE)] (let 0 = 1);
7 error: expected expression, found `let` statement
8 --> $DIR/feature-gate.rs:45:17
10 LL | noop_expr!((let 0 = 1));
13 error: no rules expected the token `let`
14 --> $DIR/feature-gate.rs:58:15
16 LL | macro_rules! use_expr {
17 | --------------------- when calling this macro
19 LL | use_expr!(let 0 = 1);
20 | ^^^ no rules expected this token in macro call
22 note: while trying to match meta-variable `$e:expr`
23 --> $DIR/feature-gate.rs:50:10
28 error[E0658]: `let` expressions in this position are unstable
29 --> $DIR/feature-gate.rs:14:16
31 LL | if true && let 0 = 1 {}
34 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
35 = help: add `#![feature(let_chains)]` to the crate attributes to enable
37 error[E0658]: `let` expressions in this position are unstable
38 --> $DIR/feature-gate.rs:17:8
40 LL | if let 0 = 1 && true {}
43 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
44 = help: add `#![feature(let_chains)]` to the crate attributes to enable
46 error[E0658]: `let` expressions in this position are unstable
47 --> $DIR/feature-gate.rs:20:8
49 LL | if let Range { start: _, end: _ } = (true..true) && false {}
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
53 = help: add `#![feature(let_chains)]` to the crate attributes to enable
55 error[E0658]: `let` expressions in this position are unstable
56 --> $DIR/feature-gate.rs:23:8
58 LL | if let 1 = 1 && let true = { true } && false {
61 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
62 = help: add `#![feature(let_chains)]` to the crate attributes to enable
64 error[E0658]: `let` expressions in this position are unstable
65 --> $DIR/feature-gate.rs:23:21
67 LL | if let 1 = 1 && let true = { true } && false {
70 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
71 = help: add `#![feature(let_chains)]` to the crate attributes to enable
73 error[E0658]: `let` expressions in this position are unstable
74 --> $DIR/feature-gate.rs:32:19
76 LL | while true && let 0 = 1 {}
79 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
80 = help: add `#![feature(let_chains)]` to the crate attributes to enable
82 error[E0658]: `let` expressions in this position are unstable
83 --> $DIR/feature-gate.rs:35:11
85 LL | while let 0 = 1 && true {}
88 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
89 = help: add `#![feature(let_chains)]` to the crate attributes to enable
91 error[E0658]: `let` expressions in this position are unstable
92 --> $DIR/feature-gate.rs:38:11
94 LL | while let Range { start: _, end: _ } = (true..true) && false {}
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
98 = help: add `#![feature(let_chains)]` to the crate attributes to enable
100 error[E0658]: `let` expressions in this position are unstable
101 --> $DIR/feature-gate.rs:55:20
103 LL | #[cfg(FALSE)] (let 0 = 1);
106 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
107 = help: add `#![feature(let_chains)]` to the crate attributes to enable
109 error[E0658]: `let` expressions in this position are unstable
110 --> $DIR/feature-gate.rs:45:17
112 LL | noop_expr!((let 0 = 1));
115 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
116 = help: add `#![feature(let_chains)]` to the crate attributes to enable
118 error: aborting due to 13 previous errors
120 For more information about this error, try `rustc --explain E0658`.