]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-81862.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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