1 2 3 4 5 6 7 8 9 10 11
// check-pass #![feature(ptr_metadata)] use std::ptr::Thin; fn main() {} fn foo<T: ?Sized + Thin>(t: *const T) -> *const () { unsafe { std::mem::transmute(t) } }