]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-92305.stderr
Rollup merge of #104895 - chenyukang:yukang/fix-104884-serde, r=TaKO8Ki
[rust.git] / src / test / ui / impl-trait / issues / issue-92305.stderr
1 error[E0107]: missing generics for struct `Vec`
2   --> $DIR/issue-92305.rs:5:45
3    |
4 LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec> {
5    |                                             ^^^ expected at least 1 generic argument
6    |
7 note: struct defined here, with at least 1 generic parameter: `T`
8   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
9    |
10 LL | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
11    |            ^^^ -
12 help: add missing generic argument
13    |
14 LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec<T>> {
15    |                                             ~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0107`.