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

#![feature(type_alias_impl_trait)]
type Opq = impl Sized;
#[define_opaque(Opq)]
fn test() -> impl Iterator<Item = Opq> {
    Box::new(0..) as Box<dyn Iterator<Item = _>>
}
fn main() {}