2024-11-02 16:10:24 -07:00
|
|
|
use std::marker::CoercePointee; //~ ERROR use of unstable library feature `derive_coerce_pointee`
|
2024-10-05 17:44:53 +08:00
|
|
|
|
2024-11-02 16:10:24 -07:00
|
|
|
#[derive(CoercePointee)] //~ ERROR use of unstable library feature `derive_coerce_pointee`
|
2024-10-05 17:44:53 +08:00
|
|
|
#[repr(transparent)]
|
|
|
|
|
struct MyPointer<'a, #[pointee] T: ?Sized> {
|
|
|
|
|
ptr: &'a T,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|