about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.rs
blob: 055889323952dbee9864315be213ed92b878a545 (plain)
1
2
3
4
5
6
7
//! Test for #39872 and #39553

fn will_ice(something: &u32) -> impl Iterator<Item = &u32> {
    //~^ ERROR `()` is not an iterator
}

fn main() {}