]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/defaults/intermixed-lifetime.min.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / defaults / intermixed-lifetime.min.stderr
1 error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/intermixed-lifetime.rs:6:28
3 |
4 LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
5 | -----------------^^---------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
6
7 error: type parameters must be declared prior to const parameters
8 --> $DIR/intermixed-lifetime.rs:6:32
9 |
10 LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
11 | ---------------------^------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
12
13 error: lifetime parameters must be declared prior to const parameters
14 --> $DIR/intermixed-lifetime.rs:10:37
15 |
16 LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
17 | --------------------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
18
19 error: type parameters must be declared prior to const parameters
20 --> $DIR/intermixed-lifetime.rs:10:28
21 |
22 LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
23 | -----------------^----------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = u32, const N: usize>`
24
25 error: aborting due to 4 previous errors
26