Skip to content

Commit 438e403

Browse files
committed
rust: add tests for safe keyword in unsafe extern block
1 parent 98d2a77 commit 438e403

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/markup/rust/extern.expect.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<span class="hljs-keyword">unsafe</span> <span class="hljs-keyword">extern</span> <span class="hljs-string">&quot;C&quot;</span> {
2+
<span class="hljs-keyword">unsafe</span> <span class="hljs-keyword">fn</span> <span class="hljs-title function_">foo</span>();
3+
safe <span class="hljs-keyword">fn</span> <span class="hljs-title function_">foo</span>();
4+
}

test/markup/rust/extern.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
unsafe extern "C" {
2+
unsafe fn foo();
3+
safe fn foo();
4+
}

0 commit comments

Comments
 (0)