rust/tests/ui/tail-typeck.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
128 B
Rust
Raw Normal View History

2011-01-31 06:38:46 +08:00
//@ error-pattern: mismatched types
fn f() -> isize { return g(); }
2011-01-31 06:38:46 +08:00
fn g() -> usize { return 0; }
2011-01-31 06:38:46 +08:00
fn main() { let y = f(); }