fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants 2 --> $DIR/issue-46843.rs:7:26 3 | 4LL | pub const Q: i32 = match non_const() { 5 | ^^^^^^^^^^^ 6 7error[E0019]: constant contains unimplemented expression type 8 --> $DIR/issue-46843.rs:7:26 9 | 10LL | pub const Q: i32 = match non_const() { 11 | ^^^^^^^^^^^ 12 13error[E0019]: constant contains unimplemented expression type 14 --> $DIR/issue-46843.rs:10:5 15 | 16LL | Thing::This => 1, 17 | ^^^^^^^^^^^ 18 19error: aborting due to 3 previous errors 20 21Some errors have detailed explanations: E0015, E0019. 22For more information about an error, try `rustc --explain E0015`.