1 error[E0308]: mismatched types
2 --> $DIR/issue-5500.rs:12:5
5 | - expected `()` because of default return type
7 | ^^^^^^^^^ expected (), found reference
9 = note: expected type `()`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.