rust/src/test/ui/parser/issue-14303-impl.stderr
David Wood 0270d565d9
Only mention const generics if enabled.
This commit updates the generic parameter re-ordering diagnostic to only
mention const generics if the feature is enabled.
2019-03-31 00:14:21 +01:00

9 lines
267 B
Plaintext

error: lifetime parameters must be declared prior to type parameters
--> $DIR/issue-14303-impl.rs:3:13
|
LL | impl<'a, T, 'b> X<T> {}
| --------^^- help: reorder the parameters: lifetimes, then types: `<'a, 'b, T>`
error: aborting due to previous error