diff options
Diffstat (limited to 'tests/rustdoc/fn-pointer-arg-name.rs')
-rw-r--r-- | tests/rustdoc/fn-pointer-arg-name.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/fn-pointer-arg-name.rs b/tests/rustdoc/fn-pointer-arg-name.rs new file mode 100644 index 000000000..96c64ac4e --- /dev/null +++ b/tests/rustdoc/fn-pointer-arg-name.rs @@ -0,0 +1,5 @@ +#![crate_name = "foo"] + +// @has foo/fn.f.html +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'pub fn f(callback: fn(len: usize, foo: u32))' +pub fn f(callback: fn(len: usize, foo: u32)) {} |