fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
686 B14 linesraw
1error: lifetime parameters must be declared prior to type and const parameters
2  --> $DIR/intermixed-lifetime.rs:3: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 = u32>`
6
7error: lifetime parameters must be declared prior to type and const parameters
8  --> $DIR/intermixed-lifetime.rs:6: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 = u32>`
12
13error: aborting due to 2 previous errors
14