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