]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-type-bounds/issue-99828.rs
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / associated-type-bounds / issue-99828.rs
1 fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
2     //~^ ERROR expected associated type bound, found constant
3     //~| ERROR associated const equality is incomplete
4     vec.iter()
5 }
6
7 fn main() {
8     let vec = Vec::new();
9     let mut iter = get_iter(&vec);
10     iter.next();
11 }