Closed
Description
openedon Nov 25, 2019
#![feature(const_if_match)]
enum E {
A,
B,
C
}
const fn f(e: E) {
match e {
E::A => {}
E::B => {}
E::C => {}
}
}
error[E0723]: const fn with unreachable code is not stable
--> src/lib.rs:10:11
|
10 | match e {
| ^
|
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
= help: add `#![feature(const_fn)]` to the crate attributes to enable
CC: #49146, @ecstatic-morse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment