summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/needs-feature.min.stderr
blob: 7058327fdce15ca12e2e7eb5f5be6c08f9405d13 (plain)
1
2
3
4
5
6
7
8
error: type parameters must be declared prior to const parameters
  --> $DIR/needs-feature.rs:10:26
   |
LL | struct A<const N: usize, T=u32>(T);
   |         -----------------^----- help: reorder the parameters: lifetimes, then types, then consts: `<T, const N: usize>`

error: aborting due to previous error