rust/tests/ui/unsafe-binders/binder-sized-crit.rs

19 lines
267 B
Rust

//@ 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!(()),
};
}
}