]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/issue-93150.stderr
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / rfc-2497-if-let-chains / issue-93150.stderr
1 error[E0658]: `if let` guards are experimental
2   --> $DIR/issue-93150.rs:3:11
3    |
4 LL |         _ if let true = true && true => {}
5    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
8    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
9    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
10
11 error[E0658]: `let` expressions in this position are unstable
12   --> $DIR/issue-93150.rs:3:14
13    |
14 LL |         _ if let true = true && true => {}
15    |              ^^^^^^^^^^^^^^^
16    |
17    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
18    = help: add `#![feature(let_chains)]` to the crate attributes to enable
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0658`.