summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe-fn-called-from-unsafe-blk.rs
blob: 3713a7065f5e5bd057bf8333c6c5cfab5db75759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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() {
}