blob: a310de624d271ef1088e6e1081e2ed0405d5e337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
enum Thing { This, That }
fn non_const() -> Thing {
Thing::This
}
pub const Q: i32 = match non_const() { //~ ERROR E0015
Thing::This => 1, //~ ERROR unimplemented expression type
Thing::That => 0
};
fn main() {}
|