]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr
Rollup merge of #102578 - lukas-code:ilog-panic, r=m-ou-se
[rust.git] / src / test / ui / rfc-2497-if-let-chains / feature-gate.stderr
1 error: expected expression, found `let` statement
2   --> $DIR/feature-gate.rs:55:20
3    |
4 LL |     #[cfg(FALSE)] (let 0 = 1);
5    |                    ^^^
6
7 error: expected expression, found `let` statement
8   --> $DIR/feature-gate.rs:45:17
9    |
10 LL |     noop_expr!((let 0 = 1));
11    |                 ^^^
12
13 error: no rules expected the token `let`
14   --> $DIR/feature-gate.rs:58:15
15    |
16 LL |     macro_rules! use_expr {
17    |     --------------------- when calling this macro
18 ...
19 LL |     use_expr!(let 0 = 1);
20    |               ^^^ no rules expected this token in macro call
21
22 error[E0658]: `let` expressions in this position are unstable
23   --> $DIR/feature-gate.rs:14:16
24    |
25 LL |     if true && let 0 = 1 {}
26    |                ^^^^^^^^^
27    |
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
30
31 error[E0658]: `let` expressions in this position are unstable
32   --> $DIR/feature-gate.rs:17:8
33    |
34 LL |     if let 0 = 1 && true {}
35    |        ^^^^^^^^^
36    |
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
39
40 error[E0658]: `let` expressions in this position are unstable
41   --> $DIR/feature-gate.rs:20:8
42    |
43 LL |     if let Range { start: _, end: _ } = (true..true) && false {}
44    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45    |
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
48
49 error[E0658]: `let` expressions in this position are unstable
50   --> $DIR/feature-gate.rs:23:8
51    |
52 LL |     if let 1 = 1 && let true = { true } && false {
53    |        ^^^^^^^^^
54    |
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
57
58 error[E0658]: `let` expressions in this position are unstable
59   --> $DIR/feature-gate.rs:23:21
60    |
61 LL |     if let 1 = 1 && let true = { true } && false {
62    |                     ^^^^^^^^^^^^^^^^^^^
63    |
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
66
67 error[E0658]: `let` expressions in this position are unstable
68   --> $DIR/feature-gate.rs:32:19
69    |
70 LL |     while true && let 0 = 1 {}
71    |                   ^^^^^^^^^
72    |
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
75
76 error[E0658]: `let` expressions in this position are unstable
77   --> $DIR/feature-gate.rs:35:11
78    |
79 LL |     while let 0 = 1 && true {}
80    |           ^^^^^^^^^
81    |
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
84
85 error[E0658]: `let` expressions in this position are unstable
86   --> $DIR/feature-gate.rs:38:11
87    |
88 LL |     while let Range { start: _, end: _ } = (true..true) && false {}
89    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90    |
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
93
94 error[E0658]: `let` expressions in this position are unstable
95   --> $DIR/feature-gate.rs:55:20
96    |
97 LL |     #[cfg(FALSE)] (let 0 = 1);
98    |                    ^^^^^^^^^
99    |
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
102
103 error[E0658]: `let` expressions in this position are unstable
104   --> $DIR/feature-gate.rs:45:17
105    |
106 LL |     noop_expr!((let 0 = 1));
107    |                 ^^^^^^^^^
108    |
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
111
112 error: aborting due to 13 previous errors
113
114 For more information about this error, try `rustc --explain E0658`.