mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 05:37:00 +00:00
19 lines
267 B
Rust
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!(()),
|
|
};
|
|
}
|
|
}
|