]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-81862.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / issue-81862.rs
1 #![feature(generic_associated_types)]
2
3 trait StreamingIterator {
4     type Item<'a>;
5     fn next(&mut self) -> Option<Self::Item>;
6     //~^ ERROR missing generics for associated type
7 }
8
9 fn main() {}
10
11 // call stack from back to front:
12 // create_substs_for_assoc_ty -> qpath_to_ty -> res_to_ty -> ast_ty_to_ty -> ty_of_fn