We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c187074 commit 27d1fb8Copy full SHA for 27d1fb8
src/test/ui/lint/issue-69173-unsafe-block-in-unsafe-fn.rs
@@ -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