]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-81862.stderr
Rollup merge of #104024 - noeddl:unused-must-use, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / issue-81862.stderr
1 error[E0107]: missing generics for associated type `StreamingIterator::Item`
2   --> $DIR/issue-81862.rs:3:40
3    |
4 LL |     fn next(&mut self) -> Option<Self::Item>;
5    |                                        ^^^^ expected 1 lifetime argument
6    |
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/issue-81862.rs:2:10
9    |
10 LL |     type Item<'a>;
11    |          ^^^^ --
12 help: add missing lifetime argument
13    |
14 LL |     fn next(&mut self) -> Option<Self::Item<'_>>;
15    |                                        ~~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0107`.