summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-10176.rs
blob: 5ac4359c5016f436da0b891ea0eef57b021edff5 (plain)
1
2
3
4
5
6
7
8
9
fn f() -> isize {
    (return 1, return 2)
//~^ ERROR mismatched types
//~| expected type `isize`
//~| found tuple `(!, !)`
//~| expected `isize`, found `(!, !)`
}

fn main() {}