1 error[E0308]: mismatched types
2 --> $DIR/diverging-tuple-parts-39485.rs:8:5
5 | ^^^^^^^^^ expected `()`, found reference
7 = note: expected unit type `()`
9 help: try adding a return type
13 help: consider removing the borrow
19 error[E0308]: mismatched types
20 --> $DIR/diverging-tuple-parts-39485.rs:12:5
22 LL | fn f() -> isize {
23 | ----- expected `isize` because of return type
24 LL | (return 1, return 2)
25 | ^^^^^^^^^^^^^^^^^^^^ expected `isize`, found tuple
27 = note: expected type `isize`
30 error: aborting due to 2 previous errors
32 For more information about this error, try `rustc --explain E0308`.