Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
type-alias-impl-trait-assoc-dyn.rs
blob: af787d66cc10bd2dfe9b5b38181926264be31d2e [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
type_alias_impl_trait
)]
#![
allow
(
dead_code
)]
type
Foo
=
Box
<
dyn
Iterator
<
Item
=
impl
Send
>>;
#[
define_opaque
(
Foo
)]
fn
make_foo
()
->
Foo
{
Box
::
new
(
vec
![
1
,
2
,
3
].
into_iter
())
}
fn
main
()
{}