rust/src/test/ui/issues/issue-10176.rs
2019-11-18 11:03:04 -08:00

10 lines
175 B
Rust

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