mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
15 lines
416 B
Rust
15 lines
416 B
Rust
#![feature(unsafe_binders)]
|
|
//~^ WARN the feature `unsafe_binders` is incomplete
|
|
|
|
use std::unsafe_binder::{wrap_binder, unwrap_binder};
|
|
|
|
fn main() {
|
|
unsafe {
|
|
let x = 1;
|
|
let binder: unsafe<'a> &'a i32 = wrap_binder!(&x);
|
|
//~^ ERROR unsafe binder casts are not fully implemented
|
|
let rx = *unwrap_binder!(binder);
|
|
//~^ ERROR unsafe binder casts are not fully implemented
|
|
}
|
|
}
|