os-rust/tests/ui/feature-gates/feature-gate-derive-coerce-pointee.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
288 B
Rust
Raw Normal View History

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