1 error[E0658]: `match` is not allowed in a `const`
2 --> $DIR/issue-46843.rs:11:20
4 LL | pub const Q: i32 = match non_const() {
5 | ____________________^
8 LL | | Thing::This => 1,
9 LL | | Thing::That => 0
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
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0658`.