summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/intermixed-lifetime.min.stderr
blob: 4d80fdb5bcbc2454634087fddfbce5b3620efaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 types, then consts: `<'a, T, const N: usize>`

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

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

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

error: aborting due to 4 previous errors