]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck-closure-to-unsafe-fn-ptr.rs
Auto merge of #67000 - spastorino:remove-promoted-from-place, r=oli-obk
[rust.git] / src / test / ui / typeck-closure-to-unsafe-fn-ptr.rs
1 // run-pass
2
3 unsafe fn call_unsafe(func: unsafe fn() -> ()) -> () {
4     func()
5 }
6
7 pub fn main() {
8     unsafe { call_unsafe(|| {}); }
9 }