]>
Commit | Line | Data |
---|---|---|
f2b60f7d | 1 | error: lifetime parameters must be declared prior to type and const parameters |
a2a8927a | 2 | --> $DIR/const-param-before-other-params.rs:1:21 |
9fa01778 | 3 | | |
94222f64 XL |
4 | LL | fn bar<const X: u8, 'a>(_: &'a ()) { |
5 | | --------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const X: u8>` | |
9fa01778 | 6 | |
3dfed10e | 7 | error: aborting due to previous error |
9fa01778 | 8 |