]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe-fn-called-from-unsafe-blk.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / unsafe-fn-called-from-unsafe-blk.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 //
5 // See also: ui/unsafe/unsafe-fn-called-from-safe.rs
6
7 // pretty-expanded FIXME #23616
8
9 unsafe fn f() { return; }
10
11 fn g() {
12     unsafe {
13         f();
14     }
15 }
16
17 pub fn main() {
18 }