4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
8 ($($t:tt)*) => { impl<const N: usize> $($t)* };
12 ($t:tt) => { fn test<const M: usize>(&self) -> usize { $t } };
15 struct Foo<const N: usize>;
17 bar!(Foo<N> { baz!{ M } });
20 assert_eq!(Foo::<7>.test::<3>(), 3);