]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/issue-19109.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / mismatched_types / issue-19109.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-19109.rs:4:5
3    |
4 LL | fn function(t: &mut dyn Trait) {
5    |                                - help: try adding a return type: `-> *mut dyn Trait`
6 LL |     t as *mut dyn Trait
7    |     ^^^^^^^^^^^^^^^^^^^ expected `()`, found *-ptr
8    |
9    = note: expected unit type `()`
10             found raw pointer `*mut dyn Trait`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.