2022-01-24 01:41:37 +01:00
|
|
|
//@ edition:2018
|
|
|
|
|
|
|
|
|
|
use core::{
|
|
|
|
|
marker::PhantomPinned,
|
|
|
|
|
mem,
|
|
|
|
|
pin::{pin, Pin},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let mut phantom_pinned = pin!(PhantomPinned);
|
2024-01-16 14:58:42 -05:00
|
|
|
mem::take(phantom_pinned.__pointer); //~ ERROR use of unstable library feature 'unsafe_pin_internals'
|
2022-01-24 01:41:37 +01:00
|
|
|
}
|