// check-pass #![feature(ptr_metadata)] use std::ptr::Thin; fn main() {} fn foo(t: *const T) -> *const () { unsafe { std::mem::transmute(t) } }