summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issue-99642.rs
blob: 75af60491e43836a233fef461d2cbd1ce7c10107 (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() {}