0270d565d9
This commit updates the generic parameter re-ordering diagnostic to only mention const generics if the feature is enabled.
9 lines
273 B
Plaintext
9 lines
273 B
Plaintext
error: lifetime parameters must be declared prior to type parameters
|
|
--> $DIR/issue-14303-trait.rs:1:18
|
|
|
|
|
LL | trait Foo<'a, T, 'b> {}
|
|
| --------^^- help: reorder the parameters: lifetimes, then types: `<'a, 'b, T>`
|
|
|
|
error: aborting due to previous error
|
|
|