blob: 3f86782838ca17eb1f5c755a347b0309d63e2645 [file] [log] [blame]
// run-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
fn const_u32_identity<const X: u32>() -> u32 {
X
}
fn main() {
let val = const_u32_identity::<18>();
assert_eq!(val, 18);
}