Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
ui
/
generator
/
type-mismatch-signature-deduction.rs
blob: 8d1ce6c7a437c424e05a052805cc2f09a8dfe1b6 [
file
] [
log
] [
blame
]
#![
feature
(
generators
,
generator_trait
)]
use
std
::
ops
::
Generator
;
fn
foo
()
->
impl
Generator
<
Return
=
i32
>
{
//~^ ERROR type mismatch
||
{
if
false
{
return
Ok
(
6
);
}
yield
();
5
//~ ERROR mismatched types [E0308]
}
}
fn
main
()
{}