fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.8 KiB106 linesraw
1error: expected expression, found `let` statement
2  --> $DIR/feature-gate.rs:54:20
3   |
4LL |     #[cfg(FALSE)] (let 0 = 1);
5   |                    ^^^
6   |
7   = note: only supported directly in conditions of `if` and `while` expressions
8
9error: expected expression, found `let` statement
10  --> $DIR/feature-gate.rs:45:17
11   |
12LL |     noop_expr!((let 0 = 1));
13   |                 ^^^
14   |
15   = note: only supported directly in conditions of `if` and `while` expressions
16
17error: no rules expected the token `let`
18  --> $DIR/feature-gate.rs:56:15
19   |
20LL |     macro_rules! use_expr {
21   |     --------------------- when calling this macro
22...
23LL |     use_expr!(let 0 = 1);
24   |               ^^^ no rules expected this token in macro call
25   |
26note: while trying to match meta-variable `$e:expr`
27  --> $DIR/feature-gate.rs:49:10
28   |
29LL |         ($e:expr) => {
30   |          ^^^^^^^
31
32error[E0658]: `let` expressions in this position are unstable
33  --> $DIR/feature-gate.rs:14:16
34   |
35LL |     if true && let 0 = 1 {}
36   |                ^^^^^^^^^
37   |
38   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
39   = help: add `#![feature(let_chains)]` to the crate attributes to enable
40
41error[E0658]: `let` expressions in this position are unstable
42  --> $DIR/feature-gate.rs:17:8
43   |
44LL |     if let 0 = 1 && true {}
45   |        ^^^^^^^^^
46   |
47   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
48   = help: add `#![feature(let_chains)]` to the crate attributes to enable
49
50error[E0658]: `let` expressions in this position are unstable
51  --> $DIR/feature-gate.rs:20:8
52   |
53LL |     if let Range { start: _, end: _ } = (true..true) && false {}
54   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55   |
56   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
57   = help: add `#![feature(let_chains)]` to the crate attributes to enable
58
59error[E0658]: `let` expressions in this position are unstable
60  --> $DIR/feature-gate.rs:23:8
61   |
62LL |     if let 1 = 1 && let true = { true } && false {
63   |        ^^^^^^^^^
64   |
65   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
66   = help: add `#![feature(let_chains)]` to the crate attributes to enable
67
68error[E0658]: `let` expressions in this position are unstable
69  --> $DIR/feature-gate.rs:23:21
70   |
71LL |     if let 1 = 1 && let true = { true } && false {
72   |                     ^^^^^^^^^^^^^^^^^^^
73   |
74   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
75   = help: add `#![feature(let_chains)]` to the crate attributes to enable
76
77error[E0658]: `let` expressions in this position are unstable
78  --> $DIR/feature-gate.rs:32:19
79   |
80LL |     while true && let 0 = 1 {}
81   |                   ^^^^^^^^^
82   |
83   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
84   = help: add `#![feature(let_chains)]` to the crate attributes to enable
85
86error[E0658]: `let` expressions in this position are unstable
87  --> $DIR/feature-gate.rs:35:11
88   |
89LL |     while let 0 = 1 && true {}
90   |           ^^^^^^^^^
91   |
92   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
93   = help: add `#![feature(let_chains)]` to the crate attributes to enable
94
95error[E0658]: `let` expressions in this position are unstable
96  --> $DIR/feature-gate.rs:38:11
97   |
98LL |     while let Range { start: _, end: _ } = (true..true) && false {}
99   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100   |
101   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
102   = help: add `#![feature(let_chains)]` to the crate attributes to enable
103
104error: aborting due to 11 previous errors
105
106For more information about this error, try `rustc --explain E0658`.