fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
527 B18 linesraw
1error[E0658]: `match` is not allowed in a `const`
2  --> $DIR/issue-46843.rs:11:20
3   |
4LL |   pub const Q: i32 = match non_const() {
5   |  ____________________^
6LL | |
7LL | |
8LL | |     Thing::This => 1,
9LL | |     Thing::That => 0
10LL | | };
11   | |_^
12   |
13   = note: for more information, see https://github.com/rust-lang/rust/issues/49146
14   = help: add `#![feature(const_if_match)]` to the crate attributes to enable
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0658`.