mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:40:45 +00:00
10 lines
288 B
Rust
10 lines
288 B
Rust
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() {}
|