]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/issue-10176.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / never_type / issue-10176.rs
1 fn f() -> isize {
2     (return 1, return 2)
3 //~^ ERROR mismatched types
4 //~| expected type `isize`
5 //~| found tuple `(!, !)`
6 //~| expected `isize`, found `(!, !)`
7 }
8
9 fn main() {}