summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/intermixed-lifetime.stderr
blob: 0f6d7f1065af83c78047ff5a0f151a556529d677 (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:6: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:9: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