]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | error: expected expression, found `let` statement |
2 | --> $DIR/issue-92893.rs:1:22 | |
3 | | | |
4 | LL | struct Bug<A = [(); (let a = (), 1).1]> { | |
5 | | ^^^ | |
6 | ||
04454e1e FG |
7 | error: `let` expressions are not supported here |
8 | --> $DIR/issue-92893.rs:1:22 | |
9 | | | |
10 | LL | struct Bug<A = [(); (let a = (), 1).1]> { | |
11 | | ^^^^^^^^^^ | |
12 | | | |
13 | = note: only supported directly in conditions of `if` and `while` expressions | |
14 | ||
15 | error[E0658]: `let` expressions in this position are unstable | |
16 | --> $DIR/issue-92893.rs:1:22 | |
17 | | | |
18 | LL | struct Bug<A = [(); (let a = (), 1).1]> { | |
19 | | ^^^^^^^^^^ | |
20 | | | |
21 | = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information | |
22 | = help: add `#![feature(let_chains)]` to the crate attributes to enable | |
23 | ||
064997fb | 24 | error: aborting due to 3 previous errors |
04454e1e FG |
25 | |
26 | For more information about this error, try `rustc --explain E0658`. |