]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46843.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-46843.rs
1 enum Thing { This, That }
2
3 fn non_const() -> Thing {
4     Thing::This
5 }
6
7 pub const Q: i32 = match non_const() {
8     //~^ ERROR E0015
9     //~^^ ERROR unimplemented expression type
10     Thing::This => 1, //~ ERROR unimplemented expression type
11     Thing::That => 0
12 };
13
14 fn main() {}