]> git.proxmox.com Git - rustc.git/blame - tests/ui/unsafe/unsafe-fn-called-from-unsafe-blk.rs
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / unsafe / unsafe-fn-called-from-unsafe-blk.rs
CommitLineData
416331ca
XL
1// run-pass
2
0bf4aa26 3#![allow(dead_code)]
223e47cc 4//
5869c6ff 5// See also: ui/unsafe/unsafe-fn-called-from-safe.rs
223e47cc 6
c34b1796
AL
7// pretty-expanded FIXME #23616
8
223e47cc
LB
9unsafe fn f() { return; }
10
11fn g() {
12 unsafe {
13 f();
14 }
15}
16
17pub fn main() {
18}