19 lines
216 B
Rust
19 lines
216 B
Rust
// run-pass
|
|
|
|
#![allow(dead_code)]
|
|
//
|
|
// See also: compile-fail/unsafe-fn-called-from-safe.rs
|
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
unsafe fn f() { return; }
|
|
|
|
fn g() {
|
|
unsafe {
|
|
f();
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|