2023-01-02 07:29:38 -06:00
|
|
|
error[E0107]: missing generics for associated type `SVec::Item`
|
2023-02-12 12:49:54 -06:00
|
|
|
--> $DIR/issue-105742.rs:16:38
|
2023-01-02 07:29:38 -06:00
|
|
|
|
|
|
|
|
LL | fn len(&self) -> <Self as SVec>::Item;
|
|
|
|
| ^^^^ expected 1 lifetime argument
|
|
|
|
|
|
|
|
|
note: associated type defined here, with 1 lifetime parameter: `'a`
|
2023-02-12 12:49:54 -06:00
|
|
|
--> $DIR/issue-105742.rs:14:10
|
2023-01-02 07:29:38 -06:00
|
|
|
|
|
|
|
|
LL | type Item<'a, T>;
|
|
|
|
| ^^^^ --
|
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
|
|
|
LL | fn len(&self) -> <Self as SVec>::Item<'_>;
|
2023-01-06 05:55:10 -06:00
|
|
|
| ++++
|
2023-01-02 07:29:38 -06:00
|
|
|
|
|
|
|
error[E0107]: missing generics for associated type `SVec::Item`
|
2023-02-12 12:49:54 -06:00
|
|
|
--> $DIR/issue-105742.rs:16:38
|
2023-01-02 07:29:38 -06:00
|
|
|
|
|
|
|
|
LL | fn len(&self) -> <Self as SVec>::Item;
|
|
|
|
| ^^^^ expected 1 generic argument
|
|
|
|
|
|
|
|
|
note: associated type defined here, with 1 generic parameter: `T`
|
2023-02-12 12:49:54 -06:00
|
|
|
--> $DIR/issue-105742.rs:14:10
|
2023-01-02 07:29:38 -06:00
|
|
|
|
|
|
|
|
LL | type Item<'a, T>;
|
|
|
|
| ^^^^ -
|
|
|
|
help: add missing generic argument
|
|
|
|
|
|
|
|
|
LL | fn len(&self) -> <Self as SVec>::Item<T>;
|
2023-01-06 05:55:10 -06:00
|
|
|
| +++
|
2023-01-02 07:29:38 -06:00
|
|
|
|
2023-02-12 12:49:54 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2023-01-02 07:29:38 -06:00
|
|
|
|
2023-02-12 12:49:54 -06:00
|
|
|
For more information about this error, try `rustc --explain E0107`.
|