os-rust/tests/ui/feature-gates/feature-gate-derive-coerce-pointee.rs
Ding Xiang Fei fd36b3a4a8
s/SmartPointer/CoerceReferent/g
move derive_smart_pointer into removed set
2024-10-24 02:14:09 +08:00

9 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() {}