mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
17 lines
178 B
Rust
17 lines
178 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
//
|
|
// See also: ui/unsafe/unsafe-fn-called-from-safe.rs
|
|
|
|
|
|
unsafe fn f() { return; }
|
|
|
|
unsafe fn g() {
|
|
f();
|
|
}
|
|
|
|
pub fn main() {
|
|
return;
|
|
}
|