Sign in
rust
/
rust-lang
/
rust
/
1b01decc1ca851e014b6951bdd7f2ac2f897adc9
/
.
/
tests
/
ui
/
block-result
/
unexpected-return-on-unit.rs
blob: 2fcbfe8c068395110334e76ba74e95c23b5857c0 [
file
] [
log
] [
blame
]
// Test that we do some basic error correction in the tokeniser (and don't spew
// too many bogus errors).
fn
foo
()
->
usize
{
3
}
fn
bar
()
{
foo
()
//~ ERROR mismatched types
}
fn
main
()
{
bar
()
}