2022-05-02 06:43:17 +09:00
|
|
|
error[E0107]: missing generics for struct `Vec`
|
|
|
|
|
--> $DIR/issue-92305.rs:5:45
|
|
|
|
|
|
|
|
|
|
|
LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec> {
|
|
|
|
|
| ^^^ expected at least 1 generic argument
|
|
|
|
|
|
|
|
|
|
|
help: add missing generic argument
|
|
|
|
|
|
|
|
|
|
|
LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec<T>> {
|
2023-01-06 20:55:10 +09:00
|
|
|
| +++
|
2022-05-02 06:43:17 +09:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
|
--> $DIR/issue-92305.rs:7:5
|
|
|
|
|
|
|
|
|
|
|
LL | iter::empty()
|
|
|
|
|
| ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `empty`
|
|
|
|
|
|
|
|
|
|
|
help: consider specifying the generic argument
|
|
|
|
|
|
|
|
|
|
|
LL | iter::empty::<T>()
|
|
|
|
|
| +++++
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2022-05-02 06:43:17 +09:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
Some errors have detailed explanations: E0107, E0282.
|
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|