rust/src/test/ui/issues/issue-10176.rs
2018-12-25 21:08:33 -07:00

10 lines
172 B
Rust

fn f() -> isize {
(return 1, return 2)
//~^ ERROR mismatched types
//~| expected type `isize`
//~| found type `(!, !)`
//~| expected isize, found tuple
}
fn main() {}