about summary refs log tree commit diff
path: root/tests/ui/unsafe-binders/expr.rs
blob: d437d8f8ac07e40bc1b00dc264cb69b45b30e497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ check-pass

#![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);
        let rx = *unwrap_binder!(binder);
    }
}