Auto merge of #48755 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavus
Multiple rustdoc fixes Fixes #48733. r? @QuietMisdreavus
This commit is contained in:
commit
948e3a30e6
4 changed files with 96 additions and 63 deletions
19
src/test/rustdoc/fn-sidebar.rs
Normal file
19
src/test/rustdoc/fn-sidebar.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// 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.bar.html
|
||||
// @has - '//*[@class="sidebar-elems"]' ''
|
||||
pub fn bar() {}
|
||||
|
||||
// @has foo/constant.BAR.html
|
||||
// @has - '//*[@class="sidebar-elems"]' ''
|
||||
pub const BAR: u32 = 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue