mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
10 lines
201 B
Rust
10 lines
201 B
Rust
//@ 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() {}
|