Skip to content

Commit 27d1fb8

Browse files
Add regression test
1 parent c187074 commit 27d1fb8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Regression test for #69173: do not warn for `unsafe` blocks in `unsafe` functions
2+
3+
// check-pass
4+
5+
#![allow(dead_code)]
6+
#![deny(unused_unsafe)]
7+
8+
unsafe fn foo() {}
9+
unsafe fn bar() { unsafe { foo(); } }
10+
11+
fn main() {}

0 commit comments

Comments
 (0)