summaryrefslogtreecommitdiffstats
path: root/tests/ui/conservative_impl_trait.rs
blob: b7f795eadb760d9162c2c60cb8cb46a2c008855c (plain)
1
2
3
4
5
6
7
// #39872, #39553

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

fn main() {}