summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/intermixed-lifetime.full.stderr
blob: 9cc3e9c0da6658b6b166c6f6e07f5facbd5413a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: lifetime parameters must be declared prior to const parameters
  --> $DIR/intermixed-lifetime.rs:7:28
   |
LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
   |           -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>`

error: lifetime parameters must be declared prior to type parameters
  --> $DIR/intermixed-lifetime.rs:11:37
   |
LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
   |           --------------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>`

error: aborting due to 2 previous errors