rust/tests/ui/unsafe-fn-called-from-unsafe-fn.rs
2023-01-11 09:32:08 +00:00

18 lines
209 B
Rust

// run-pass
#![allow(dead_code)]
//
// See also: ui/unsafe/unsafe-fn-called-from-safe.rs
// pretty-expanded FIXME #23616
unsafe fn f() { return; }
unsafe fn g() {
f();
}
pub fn main() {
return;
}