Skip to content

Commit 5f447a1

Browse files
committed
Add test of fn pointer without argument name
1 parent e08cd3c commit 5f447a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/rustdoc/fn-pointer-arg-name.rs

+8
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
//@ has foo/fn.f.html
44
//@ has - '//pre[@class="rust item-decl"]' 'pub fn f(callback: fn(len: usize, foo: u32))'
55
pub fn f(callback: fn(len: usize, foo: u32)) {}
6+
7+
//@ has foo/fn.g.html
8+
//@ has - '//pre[@class="rust item-decl"]' 'pub fn g(_: fn(_: usize, _: u32))'
9+
pub fn g(_: fn(usize, _: u32)) {}
10+
11+
//@ has foo/fn.mixed.html
12+
//@ has - '//pre[@class="rust item-decl"]' 'pub fn mixed(_: fn(_: usize, foo: u32))'
13+
pub fn mixed(_: fn(usize, foo: u32)) {}

0 commit comments

Comments
 (0)