summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-97760.rs
blob: cf9c3c58dca6f8139a562c7979ab20a76c802006 (plain)
1
2
3
4
5
6
7
8
9
pub fn print_values(values: &impl IntoIterator)
where {
    for x in values.into_iter() {
        println!("{x}");
        //~^ ERROR <impl IntoIterator as IntoIterator>::Item` doesn't implement `std::fmt::Display
    }
}

fn main() {}