rust/tests/ui/unsafe-fn-called-from-unsafe-blk.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
213 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
//
2020-12-28 17:15:16 +00:00
// See also: ui/unsafe/unsafe-fn-called-from-safe.rs
// pretty-expanded FIXME #23616
2012-08-02 00:30:05 +00:00
unsafe fn f() { return; }
fn g() {
unsafe {
f();
}
}
pub fn main() {
}