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
18 error[E0308]: mismatched types
19 --> $DIR/diverging-tuple-parts-39485.rs:12:5
21 LL | fn f() -> isize {
22 | ----- expected `isize` because of return type
23 LL | (return 1, return 2)
24 | ^^^^^^^^^^^^^^^^^^^^ expected `isize`, found tuple
26 = note: expected type `isize`
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0308`.