mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
f1be59fa72
Co-authored-by: Wedson Almeida Filho <walmeida@microsoft.com>
10 lines
332 B
Rust
10 lines
332 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'
|
|
struct MyPointer<'a, #[pointee] T: ?Sized> {
|
|
//~^ ERROR the `#[pointee]` attribute is an experimental feature
|
|
ptr: &'a T,
|
|
}
|
|
|
|
fn main() {}
|