blob: bbc55815e9a208b77fe4cd906f49f21f470257d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// run-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
const fn const_u32_identity<const X: u32>() -> u32 {
X
}
fn main() {
assert_eq!(const_u32_identity::<18>(), 18);
}
|