error[E0308]: mismatched types | |
--> $DIR/issue-19109.rs:14:5 | |
| | |
LL | fn function(t: &mut Trait) { | |
| - help: try adding a return type: `-> *mut dyn Trait` | |
LL | t as *mut Trait | |
| ^^^^^^^^^^^^^^^ expected (), found *-ptr | |
| | |
= note: expected type `()` | |
found type `*mut dyn Trait` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |