rust/src/test/ui/issues/issue-46843.rs
2019-06-13 21:05:21 +01:00

15 lines
278 B
Rust

enum Thing { This, That }
fn non_const() -> Thing {
Thing::This
}
pub const Q: i32 = match non_const() {
//~^ ERROR E0015
//~^^ ERROR unimplemented expression type
Thing::This => 1, //~ ERROR unimplemented expression type
Thing::That => 0
};
fn main() {}