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

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