]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-99642.rs
Rollup merge of #99386 - AngelicosPhosphoros:add_retain_test_maybeuninit, r=JohnTitor
[rust.git] / src / test / ui / impl-trait / issue-99642.rs
1 // check-pass
2
3 fn test() -> impl Iterator<Item = impl Sized> {
4     Box::new(0..) as Box<dyn Iterator<Item = _>>
5 }
6
7 fn main() {}