rust/tests/ui/const-generics/const-param-before-other-params.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
332 B
Plaintext
Raw Normal View History

2022-09-09 12:28:57 +00:00
error: lifetime parameters must be declared prior to type and const parameters
2021-10-23 15:57:49 +00:00
--> $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