1 #![feature(generic_associated_types)]
3 trait StreamingIterator {
5 fn next(&mut self) -> Option<Self::Item>;
6 //~^ ERROR missing generics for associated type
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