summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-derive-smart-pointer.rs
blob: 7b4764ee768ab2083832862a1e9156391d908fca (plain)
1
2
3
4
5
6
7
8
9
use std::marker::SmartPointer; //~ ERROR use of unstable library feature 'derive_smart_pointer'

#[derive(SmartPointer)] //~ ERROR use of unstable library feature 'derive_smart_pointer'
#[repr(transparent)]
struct MyPointer<'a, #[pointee] T: ?Sized> {
    ptr: &'a T,
}

fn main() {}