summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-81862.rs
blob: e457bca0c09636edf557ba337220deb564bddbf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(generic_associated_types)]

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