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