Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
late-bound-in-object-assocty.rs
blob: 42b33c6e31d3c0d89af330d8c78b925818fafd74 [
file
] [
log
] [
blame
]
// Test for issue #132429
//@ edition: 2024
//@check-pass
use
std
::
future
::
Future
;
trait
Test
{
fn
foo
<
'a>(&'
a
self
)
->
Box
<
dyn
Future
<
Output
=
impl
IntoIterator
<
Item
=
u32
>>>
{
Box
::
new
(
async
{
[]
})
}
}
fn
main
()
{}