Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-21332.rs
blob: db157f095a9beecda8844ed7cbb716771feb1a76 [
file
] [
log
] [
blame
]
struct
S
;
impl
Iterator
for
S
{
type
Item
=
i32
;
fn
next
(&
mut
self
)
->
Result
<
i32
,
i32
>
{
Ok
(
7
)
}
//~^ ERROR method `next` has an incompatible type for trait
//~| expected enum `std::option::Option`, found enum `std::result::Result`
}
fn
main
()
{}