]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / 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 }