Add test of fn pointer without argument name
This commit is contained in:
parent
e08cd3cf05
commit
5f447a1ca6
1 changed files with 8 additions and 0 deletions
|
@ -3,3 +3,11 @@
|
||||||
//@ has foo/fn.f.html
|
//@ has foo/fn.f.html
|
||||||
//@ has - '//pre[@class="rust item-decl"]' 'pub fn f(callback: fn(len: usize, foo: u32))'
|
//@ has - '//pre[@class="rust item-decl"]' 'pub fn f(callback: fn(len: usize, foo: u32))'
|
||||||
pub fn f(callback: fn(len: usize, foo: u32)) {}
|
pub fn f(callback: fn(len: usize, foo: u32)) {}
|
||||||
|
|
||||||
|
//@ has foo/fn.g.html
|
||||||
|
//@ has - '//pre[@class="rust item-decl"]' 'pub fn g(_: fn(_: usize, _: u32))'
|
||||||
|
pub fn g(_: fn(usize, _: u32)) {}
|
||||||
|
|
||||||
|
//@ has foo/fn.mixed.html
|
||||||
|
//@ has - '//pre[@class="rust item-decl"]' 'pub fn mixed(_: fn(_: usize, foo: u32))'
|
||||||
|
pub fn mixed(_: fn(usize, foo: u32)) {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue