mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Test multiple variants
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
@@ -15,5 +15,7 @@ const fn f(e: E) -> usize {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
const X: usize = f(E::C);
|
||||
assert_eq!(X, 0);
|
||||
assert_eq!(f(E::A), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user