]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pin-macro/cant_access_internals.rs
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / pin-macro / cant_access_internals.rs
1 // edition:2018
2 #![feature(pin_macro)]
3
4 use core::{
5     marker::PhantomPinned,
6     mem,
7     pin::{pin, Pin},
8 };
9
10 fn main() {
11     let mut phantom_pinned = pin!(PhantomPinned);
12     mem::take(phantom_pinned.pointer); //~ ERROR use of unstable library feature 'unsafe_pin_internals'
13 }