1 error[E0107]: missing generics for struct `Vec`
2 --> $DIR/issue-92305.rs:5:45
4 LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec> {
5 | ^^^ expected at least 1 generic argument
7 note: struct defined here, with at least 1 generic parameter: `T`
8 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
10 LL | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
12 help: add missing generic argument
14 LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec<T>> {
17 error[E0282]: type annotations needed
18 --> $DIR/issue-92305.rs:7:5
21 | ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `empty`
23 help: consider specifying the generic argument
25 LL | iter::empty::<T>()
28 error[E0282]: type annotations needed
29 --> $DIR/issue-92305.rs:10:35
31 LL | fn g<T>(data: &[T], target: T) -> impl Iterator<Item = Vec<T>> {
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
34 error: aborting due to 3 previous errors
36 Some errors have detailed explanations: E0107, E0282.
37 For more information about an error, try `rustc --explain E0107`.