summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/fn-pointer-arg-name.rs
blob: 96c64ac4e0211b2c09873e337208f6913899e1b9 (plain)
1
2
3
4
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)) {}