about summary refs log tree commit diff
path: root/tests/ui/associated-type-bounds/issue-99828.rs
blob: ab3654131f1d936050eb8851795527b0b3dc862e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
    //~^ ERROR expected type, found constant
    //~| ERROR expected type, found constant
    //~| ERROR associated const equality is incomplete
    vec.iter()
}

fn main() {
    let vec = Vec::new();
    let mut iter = get_iter(&vec);
    iter.next();
}