1 error[E0308]: mismatched types
2 --> $DIR/issue-19109.rs:14:5
4 13 | fn function(t: &mut Trait) {
5 | - help: try adding a return type: `-> *mut Trait`
7 | ^^^^^^^^^^^^^^^ expected (), found *-ptr
9 = note: expected type `()`
10 found type `*mut Trait`
12 error: aborting due to previous error