]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-after-const-literal-arg.rs
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / const-generics / const-param-after-const-literal-arg.rs
1 // check-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5
6 struct Foo<const A: usize, const B: usize>;
7
8 impl<const A: usize> Foo<1, A> {} // ok
9
10 fn main() {}