]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-99642-2.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / ui / impl-trait / issue-99642-2.rs
1 // check-pass
2
3 #![feature(type_alias_impl_trait)]
4 type Opq = impl Sized;
5 fn test() -> impl Iterator<Item = Opq> {
6     Box::new(0..) as Box<dyn Iterator<Item = _>>
7 }
8 fn main(){}