about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-derive-coerce-pointee.rs
blob: d730849dcf6aa12095d6ac8b0825db8ce0bdc6d9 (plain)
1
2
3
4
5
6
7
8
9
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() {}