diff options
| author | bors <bors@rust-lang.org> | 2017-10-07 19:39:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-07 19:39:31 +0000 |
| commit | 05f8ddc46a3fc09762a19f6c168550ce1ae66593 (patch) | |
| tree | 0427936078e4826d0751e5ceec930c7a928b694c /src/test/rustdoc | |
| parent | bb4d1491466d8239a7a5fd68bd605e3276e97afb (diff) | |
| parent | fe24e815a2d0aecfd975a15a12a4b4937bb4cc37 (diff) | |
| download | rust-05f8ddc46a3fc09762a19f6c168550ce1ae66593.tar.gz rust-05f8ddc46a3fc09762a19f6c168550ce1ae66593.zip | |
Auto merge of #44892 - GuillaumeGomez:fnty-args-rustdoc, r=eddyb
Fnty args rustdoc Fixes #44570. cc @QuietMisdreavus cc @rust-lang/dev-tools Considering the impact on the `hir` libs, I'll put @eddyb as reviewer. r? @eddyb
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/fn-pointer-arg-name.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc/fn-pointer-arg-name.rs b/src/test/rustdoc/fn-pointer-arg-name.rs new file mode 100644 index 00000000000..af87f1b4669 --- /dev/null +++ b/src/test/rustdoc/fn-pointer-arg-name.rs @@ -0,0 +1,15 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_name = "foo"] + +// @has foo/fn.f.html +// @has - '//*[@class="rust fn"]' 'pub fn f(callback: fn(len: usize, foo: u32))' +pub fn f(callback: fn(len: usize, foo: u32)) {} |
