blob: d730849dcf6aa12095d6ac8b0825db8ce0bdc6d9 [file] [log] [blame]
use std::marker::CoercePointee; //~ ERROR use of unstable library feature `derive_coerce_pointee`
#[derive(CoercePointee)] //~ ERROR use of unstable library feature `derive_coerce_pointee`
#[repr(transparent)]
struct MyPointer<'a, #[pointee] T: ?Sized> {
ptr: &'a T,
}
fn main() {}