]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[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 note: while trying to match meta-variable `$e:expr`
23   --> $DIR/feature-gate.rs:50:10
24    |
25 LL |         ($e:expr) => {
26    |          ^^^^^^^
27
28 error[E0658]: `let` expressions in this position are unstable
29   --> $DIR/feature-gate.rs:14:16
30    |
31 LL |     if true && let 0 = 1 {}
32    |                ^^^^^^^^^
33    |
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
36
37 error[E0658]: `let` expressions in this position are unstable
38   --> $DIR/feature-gate.rs:17:8
39    |
40 LL |     if let 0 = 1 && true {}
41    |        ^^^^^^^^^
42    |
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
45
46 error[E0658]: `let` expressions in this position are unstable
47   --> $DIR/feature-gate.rs:20:8
48    |
49 LL |     if let Range { start: _, end: _ } = (true..true) && false {}
50    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51    |
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
54
55 error[E0658]: `let` expressions in this position are unstable
56   --> $DIR/feature-gate.rs:23:8
57    |
58 LL |     if let 1 = 1 && let true = { true } && false {
59    |        ^^^^^^^^^
60    |
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
63
64 error[E0658]: `let` expressions in this position are unstable
65   --> $DIR/feature-gate.rs:23:21
66    |
67 LL |     if let 1 = 1 && let true = { true } && false {
68    |                     ^^^^^^^^^^^^^^^^^^^
69    |
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
72
73 error[E0658]: `let` expressions in this position are unstable
74   --> $DIR/feature-gate.rs:32:19
75    |
76 LL |     while true && let 0 = 1 {}
77    |                   ^^^^^^^^^
78    |
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
81
82 error[E0658]: `let` expressions in this position are unstable
83   --> $DIR/feature-gate.rs:35:11
84    |
85 LL |     while let 0 = 1 && true {}
86    |           ^^^^^^^^^
87    |
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
90
91 error[E0658]: `let` expressions in this position are unstable
92   --> $DIR/feature-gate.rs:38:11
93    |
94 LL |     while let Range { start: _, end: _ } = (true..true) && false {}
95    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96    |
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
99
100 error[E0658]: `let` expressions in this position are unstable
101   --> $DIR/feature-gate.rs:55:20
102    |
103 LL |     #[cfg(FALSE)] (let 0 = 1);
104    |                    ^^^^^^^^^
105    |
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
108
109 error[E0658]: `let` expressions in this position are unstable
110   --> $DIR/feature-gate.rs:45:17
111    |
112 LL |     noop_expr!((let 0 = 1));
113    |                 ^^^^^^^^^
114    |
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
117
118 error: aborting due to 13 previous errors
119
120 For more information about this error, try `rustc --explain E0658`.