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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
267 B
Rust
Raw Normal View History

2025-02-28 03:17:02 +00:00
//@ 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!(()),
};
}
}