]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-99642-2.rs
Suggest coercion of `Result` using `?`
[rust.git] / tests / 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(){}