]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/const-arg-in-fn.rs
Rollup merge of #106859 - tialaramex:master, r=Nilstrieb
[rust.git] / tests / ui / const-generics / const-arg-in-fn.rs
1 // run-pass
2 fn const_u32_identity<const X: u32>() -> u32 {
3     X
4 }
5
6  fn main() {
7     let val = const_u32_identity::<18>();
8     assert_eq!(val, 18);
9 }