1
Fork 0
rust/src/test/ui/issues/issue-80512-param-reordering-with-defaults.stderr

9 lines
317 B
Text
Raw Normal View History

error: lifetime parameters must be declared prior to type parameters
--> $DIR/issue-80512-param-reordering-with-defaults.rs:3:18
|
LL | struct S<T = (), 'a>(&'a T);
| ---------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T = ()>`
error: aborting due to previous error