]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/issue-19109.rs
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / mismatched_types / issue-19109.rs
1 trait Trait { }
2
3 fn function(t: &mut dyn Trait) {
4     t as *mut dyn Trait
5  //~^ ERROR: mismatched types
6 }
7
8 fn main() { }