2023-01-02 07:29:38 -06:00
error[E0107]: missing generics for associated type `SVec::Item`
2023-03-20 08:14:06 -05:00
--> $DIR/issue-105742.rs:15:21
2023-03-01 03:40:39 -06:00
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-03-20 08:14:06 -05:00
--> $DIR/issue-105742.rs:15:21
2023-03-01 03:40:39 -06:00
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:24:37
2023-03-01 03:40:39 -06:00
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:24:37
2023-03-01 03:40:39 -06:00
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:30
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:30
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:46
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:46
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:4:40
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<'_> = T, Output = T>) {
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:4:40
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<T> = T, Output = T>) {
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-03-20 08:14:06 -05:00
--> $DIR/issue-105742.rs:15:21
2023-03-01 03:40:39 -06:00
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-03-20 08:14:06 -05:00
--> $DIR/issue-105742.rs:15:21
2023-03-01 03:40:39 -06:00
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:24:37
2023-03-01 03:40:39 -06:00
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:24:37
2023-03-01 03:40:39 -06:00
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:30
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:30
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:46
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:33:46
2023-03-01 03:40:39 -06:00
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51:10
2023-03-01 03:40:39 -06:00
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0038]: the trait `SVec` cannot be made into an object
--> $DIR/issue-105742.rs:4:31
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SVec` cannot be made into an object
|
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
2023-03-20 08:14:06 -05:00
--> $DIR/issue-105742.rs:14:17
2023-03-01 03:40:39 -06:00
|
LL | pub trait SVec: Index<
| ____________----__^
| | |
| | this trait cannot be made into an object...
LL | | <Self as SVec>::Item,
LL | |
LL | |
... |
LL | |/ Output = <Index<<Self as SVec>::Item,
LL | ||
LL | ||
LL | ||
2023-03-20 08:14:06 -05:00
... ||
2023-03-01 03:40:39 -06:00
LL | ||
LL | || Output = <Self as SVec>::Item> as SVec>::Item,
| ||_________________________________________________^ ...because it uses `Self` as a type parameter
... |
LL | |
LL | | > {
| |__^ ...because it uses `Self` as a type parameter
error[E0107]: missing generics for associated type `SVec::Item`
2023-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:15:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:24:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:24:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:33:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:33:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:33:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ --
help: add missing lifetime argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:33:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:51:10
|
LL | type Item<'a, T>;
| ^^^^ -
help: add missing generic argument
|
LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:53: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-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51: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-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:53: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-04-18 19:13:53 -05:00
--> $DIR/issue-105742.rs:51: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-04-18 19:13:53 -05:00
error: aborting due to 29 previous errors
2023-01-02 07:29:38 -06:00
2023-03-01 03:40:39 -06:00
Some errors have detailed explanations: E0038, E0107.
For more information about an error, try `rustc --explain E0038`.