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 error[E0658]: `let` expressions in this position are unstable
23 --> $DIR/feature-gate.rs:14:16
25 LL | if true && let 0 = 1 {}
28 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
29 = help: add `#![feature(let_chains)]` to the crate attributes to enable
31 error[E0658]: `let` expressions in this position are unstable
32 --> $DIR/feature-gate.rs:17:8
34 LL | if let 0 = 1 && true {}
37 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
38 = help: add `#![feature(let_chains)]` to the crate attributes to enable
40 error[E0658]: `let` expressions in this position are unstable
41 --> $DIR/feature-gate.rs:20:8
43 LL | if let Range { start: _, end: _ } = (true..true) && false {}
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
47 = help: add `#![feature(let_chains)]` to the crate attributes to enable
49 error[E0658]: `let` expressions in this position are unstable
50 --> $DIR/feature-gate.rs:23:8
52 LL | if let 1 = 1 && let true = { true } && false {
55 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
56 = help: add `#![feature(let_chains)]` to the crate attributes to enable
58 error[E0658]: `let` expressions in this position are unstable
59 --> $DIR/feature-gate.rs:23:21
61 LL | if let 1 = 1 && let true = { true } && false {
64 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
65 = help: add `#![feature(let_chains)]` to the crate attributes to enable
67 error[E0658]: `let` expressions in this position are unstable
68 --> $DIR/feature-gate.rs:32:19
70 LL | while true && let 0 = 1 {}
73 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
74 = help: add `#![feature(let_chains)]` to the crate attributes to enable
76 error[E0658]: `let` expressions in this position are unstable
77 --> $DIR/feature-gate.rs:35:11
79 LL | while let 0 = 1 && true {}
82 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
83 = help: add `#![feature(let_chains)]` to the crate attributes to enable
85 error[E0658]: `let` expressions in this position are unstable
86 --> $DIR/feature-gate.rs:38:11
88 LL | while let Range { start: _, end: _ } = (true..true) && false {}
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
92 = help: add `#![feature(let_chains)]` to the crate attributes to enable
94 error[E0658]: `let` expressions in this position are unstable
95 --> $DIR/feature-gate.rs:55:20
97 LL | #[cfg(FALSE)] (let 0 = 1);
100 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
101 = help: add `#![feature(let_chains)]` to the crate attributes to enable
103 error[E0658]: `let` expressions in this position are unstable
104 --> $DIR/feature-gate.rs:45:17
106 LL | noop_expr!((let 0 = 1));
109 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
110 = help: add `#![feature(let_chains)]` to the crate attributes to enable
112 error: aborting due to 13 previous errors
114 For more information about this error, try `rustc --explain E0658`.