summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-param-before-other-params.stderr
blob: 8f8c87afe85148032ed42cbfc1634413d930cf20 (plain)
1
2
3
4
5
6
7
8
error: lifetime parameters must be declared prior to type and const parameters
  --> $DIR/const-param-before-other-params.rs:1:21
   |
LL | fn bar<const X: u8, 'a>(_: &'a ()) {
   |       --------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const X: u8>`

error: aborting due to 1 previous error