mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
215 B
Rust
18 lines
215 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; }
|
|
|
|
fn g() {
|
|
unsafe {
|
|
f();
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|