Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
generator
/
type-mismatch-signature-deduction.rs
blob: b9c6bc5d0796e4b30e8f97fb5ec33ac531905479 [
file
] [
log
] [
blame
]
#![
feature
(
generators
,
generator_trait
)]
use
std
::
ops
::
Generator
;
fn
foo
()
->
impl
Generator
<
Return
=
i32
>
{
||
{
if
false
{
return
Ok
(
6
);
//~ ERROR mismatched types [E0308]
}
yield
();
5
}
}
fn
main
()
{}