Closed
Description
struct Foo<T, 'a>(&'a ());
causes the following error:
error: lifetime parameters must be declared prior to type parameters
--> src/lib.rs:1:15
|
1 | struct Foo<T, 'a>(&'a ());
| ----^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T>`
error[E0392]: parameter `'a` is never used
--> src/lib.rs:1:15
|
1 | struct Foo<T, 'a>(&'a ());
| ^^ unused parameter
|
= help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
it should be "parameter T
is never used"