]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/issue-92893.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / mir / issue-92893.stderr
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
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
24 error: aborting due to 3 previous errors
25
26 For more information about this error, try `rustc --explain E0658`.