blob: c25e2687b752a54a22828e06073b841ca401aa6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0308]: mismatched types
--> $DIR/issue-19109.rs:4:5
|
LL | fn function(t: &mut dyn Trait) {
| - help: try adding a return type: `-> *mut dyn Trait`
LL | t as *mut dyn Trait
| ^^^^^^^^^^^^^^^^^^^ expected `()`, found *-ptr
|
= note: expected unit type `()`
found raw pointer `*mut dyn Trait`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
|