mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
9 lines
330 B
Plaintext
9 lines
330 B
Plaintext
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 previous error
|
|
|