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