]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-fn-with-const-param.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / const-fn-with-const-param.rs
1 // Checks that `const fn` with const params can be used.
2 // run-pass
3
4 const fn const_u32_identity<const X: u32>() -> u32 {
5     X
6 }
7
8 fn main() {
9     assert_eq!(const_u32_identity::<18>(), 18);
10 }