Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
impl-trait
/
issues
/
issue-42479.rs
blob: 7d69cd0a3038f5b65325b3eec85459de9c4f9cca [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
use
std
::
iter
::
once
;
struct
Foo
{
x
:
i32
,
}
impl
Foo
{
fn
inside
(&
self
)
->
impl
Iterator
<
Item
=
&
i32
>
{
once
(&
self
.
x
)
}
}
fn
main
()
{
println
!(
"hi"
);
}