2 #![allow(unused_variables)]
3 // Test coercions involving DST and/or raw pointers
5 // pretty-expanded FIXME #23616
8 trait T { fn dummy(&self) { } }
13 // Test we can convert from &-ptr to *-ptr of trait objects
14 let x: *const dyn T = &S;
16 // Test we can convert from &-ptr to *-ptr of struct pointer (not DST)
20 let x: &mut dyn T = &mut S;
21 let x: *mut dyn T = &mut S;
23 let x: *mut S = &mut S;
25 // Test we can change the mutability from mut to const.
26 let x: &dyn T = &mut S;
27 let x: *const dyn T = &mut S;