From fe24e815a2d0aecfd975a15a12a4b4937bb4cc37 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 27 Sep 2017 00:43:37 +0200 Subject: Fix invalid rustdoc rendering for FnTy args --- src/test/rustdoc/fn-pointer-arg-name.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/rustdoc/fn-pointer-arg-name.rs (limited to 'src/test/rustdoc') 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 or the MIT license +// , 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)) {} -- cgit 1.4.1-3-g733a5