]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs
Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplett
[rust.git] / src / test / ui / typeck / 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 }