Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
enum Thing {
This,
That,
}
fn non_const() -> Thing {
Thing::This
pub const Q: i32 = match non_const() {
//~^ ERROR cannot call non-const fn
Thing::This => 1,
Thing::That => 0
};
fn main() {}