]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error: lifetime parameters must be declared prior to type parameters |
2 | --> $DIR/issue-80512-param-reordering-with-defaults.rs:3:18 | |
3 | | | |
4 | LL | struct S<T = (), 'a>(&'a T); | |
a2a8927a | 5 | | ---------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T = ()>` |
5869c6ff XL |
6 | |
7 | error: aborting due to previous error | |
8 |