fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
599 B14 linesraw
1error: lifetime parameters must be declared prior to const parameters
2  --> $DIR/const-param-before-other-params.rs:3:21
3   |
4LL | fn bar<const X: (), 'a>(_: &'a ()) {
5   |       --------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, const X: ()>`
6
7error: type parameters must be declared prior to const parameters
8  --> $DIR/const-param-before-other-params.rs:7:21
9   |
10LL | fn foo<const X: (), T>(_: &T) {
11   |       --------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const X: ()>`
12
13error: aborting due to 2 previous errors
14