about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-99642.rs
blob: ed4786ae8d812a72b3fe9684edd57b1f41ebf4be (plain)
1
2
3
4
5
6
7
//@ check-pass

fn test() -> impl Iterator<Item = impl Sized> {
    Box::new(0..) as Box<dyn Iterator<Item = _>>
}

fn main() {}