summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-81862.rs
blob: bde828b775b57017600673232ef16282e57390e7 (plain)
1
2
3
4
5
6
7
8
9
10
trait StreamingIterator {
    type Item<'a>;
    fn next(&mut self) -> Option<Self::Item>;
    //~^ ERROR missing generics for associated type
}

fn main() {}

// call stack from back to front:
// create_substs_for_assoc_ty -> qpath_to_ty -> res_to_ty -> ast_ty_to_ty -> ty_of_fn