summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-10176.rs
blob: 6277aa05eb3655b3e9a21c7b32d6989b2897c720 (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 tuple
}

fn main() {}