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