1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2 --> $DIR/issue-46843.rs:17:26
4 LL | pub const Q: i32 = match non_const() { //~ ERROR E0015
7 error[E0019]: constant contains unimplemented expression type
8 --> $DIR/issue-46843.rs:18:5
10 LL | Thing::This => 1, //~ ERROR unimplemented expression type
13 error: aborting due to 2 previous errors
15 Some errors occurred: E0015, E0019.
16 For more information about an error, try `rustc --explain E0015`.