]> git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }