]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-before-other-params.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / const-param-before-other-params.full.stderr
1 error: lifetime parameters must be declared prior to const parameters
2   --> $DIR/const-param-before-other-params.rs:6:21
3    |
4 LL | fn bar<const X: (), 'a>(_: &'a ()) {
5    |       --------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const X: ()>`
6
7 error: aborting due to previous error
8