]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/defaults/intermixed-lifetime.stderr
New upstream version 1.47.0+dfsg1
[rustc.git] / src / test / ui / const-generics / defaults / intermixed-lifetime.stderr
CommitLineData
3dfed10e
XL
1error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/intermixed-lifetime.rs:6:28
3 |
4LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
5 | -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>`
6
7error: lifetime parameters must be declared prior to type parameters
8 --> $DIR/intermixed-lifetime.rs:9:37
9 |
10LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
11 | --------------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>`
12
13error: aborting due to 2 previous errors
14