We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d94e06 commit 8a9b670Copy full SHA for 8a9b670
tests/rustdoc-json/fns/extern_safe.rs
@@ -0,0 +1,17 @@
1
+extern "C" {
2
+ //@ is "$.index[*][?(@.name=='f1')].inner.function.header.is_unsafe" true
3
+ pub fn f1();
4
+
5
+ // items in unadorned `extern` blocks cannot have safety qualifiers
6
+}
7
8
+unsafe extern "C" {
9
+ //@ is "$.index[*][?(@.name=='f4')].inner.function.header.is_unsafe" true
10
+ pub fn f4();
11
12
+ //@ is "$.index[*][?(@.name=='f5')].inner.function.header.is_unsafe" true
13
+ pub unsafe fn f5();
14
15
+ //@ is "$.index[*][?(@.name=='f6')].inner.function.header.is_unsafe" false
16
+ pub safe fn f6();
17
0 commit comments