error[E0637]: `'_` cannot be used here
--> src/test.rs:109:42
|
109 | #[br(import_raw(args: FieldArgs<'_, &'_ ExtraArgs<'_>>))]
| ^^ `'_` is a reserved lifetime name
error[E0637]: `'_` cannot be used here
--> src/test.rs:109:63
|
109 | #[br(import_raw(args: FieldArgs<'_, &'_ ExtraArgs<'_>>))]
| ^^ `'_` is a reserved lifetime name
error[E0637]: `'_` cannot be used here
--> src/test.rs:114:60
|
114 | #[br(import_raw(args: FieldArgs<'_, &ExtraArgs<'_>>))]
| ^^ `'_` is a reserved lifetime name
I would expect the '_ lifetimes to be recursively replaced in those types. The "'_ cannot be used here" error is very confusing because the successful '_ usage is right next to it. I only understood the problem after reading the output of cargo expand.
The following code leads to some very confusing compilation errors:
I would expect the
'_
lifetimes to be recursively replaced in those types. The "'_
cannot be used here" error is very confusing because the successful'_
usage is right next to it. I only understood the problem after reading the output ofcargo expand
.