]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-81862.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / generic-associated-types / issue-81862.rs
1 trait StreamingIterator {
2     type Item<'a>;
3     fn next(&mut self) -> Option<Self::Item>;
4     //~^ ERROR missing generics for associated type
5 }
6
7 fn main() {}
8
9 // call stack from back to front:
10 // create_substs_for_assoc_ty -> qpath_to_ty -> res_to_ty -> ast_ty_to_ty -> ty_of_fn