fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
541 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: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
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`.