mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
353 B
Rust
11 lines
353 B
Rust
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> {
|
|
//~^ ERROR the `#[pointee]` attribute is an experimental feature
|
|
ptr: &'a T,
|
|
}
|
|
|
|
fn main() {}
|