about summary refs log tree commit diff
path: root/tests/ui/unsafe-binders/binder-sized-crit.rs
blob: 37677c0ef69b998ea4732cbddd4cb4e13927b1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ check-pass

#![feature(unsafe_binders)]
//~^ WARN the feature `unsafe_binders` is incomplete

use std::unsafe_binder::wrap_binder;

struct A {
    b: unsafe<> (),
}

fn main() {
    unsafe {
        let _ = A {
            b: wrap_binder!(()),
        };
    }
}