2 #![cfg_attr(full, feature(const_generics))] //[full]~WARN the feature `const_generics` is incomplete
3 #![cfg_attr(min, feature(min_const_generics))]
5 struct Const<const N: usize>;
7 impl<const C: usize> Const<{C}> {
8 fn successor() -> Const<{C + 1}> {
9 //[full]~^ ERROR constant expression depends on a generic parameter
10 //[min]~^^ ERROR generic parameters must not be used
16 let _x: Const::<2> = Const::<1>::successor();