]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/unexpected-return-on-unit.rs
fuzzify `fuzzy_match_tys`
[rust.git] / src / test / ui / block-result / unexpected-return-on-unit.rs
1 // Test that we do some basic error correction in the tokeniser (and don't spew
2 // too many bogus errors).
3
4 fn foo() -> usize {
5     3
6 }
7
8 fn bar() {
9     foo() //~ ERROR mismatched types
10 }
11
12 fn main() {
13     bar()
14 }