]>
git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs
3 const fn identity
<const T
: u32>() -> u32 { T }
5 #[derive(Eq, PartialEq, Debug)]
6 pub struct ConstU32
<const U
: u32>;
8 pub fn new() -> ConstU32
<{ identity::<3>() }
> {
9 ConstU32
::<{ identity::<3>() }
>
14 assert_eq
!(v
, ConstU32
::<3>);