diff options
| author | bors <bors@rust-lang.org> | 2018-04-10 06:23:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-10 06:23:52 +0000 |
| commit | a1c21ed7e21642b85947ba5d030bbaeffbe377de (patch) | |
| tree | 041000b89b7f00d48f68a19c3daa017a10b94d72 /src/test | |
| parent | 5d7f892356906ed8f7f2c7f2a878b9447e49d4f1 (diff) | |
| parent | 1292e51e73586f6d8297a3987ab3d3de425b83e1 (diff) | |
| download | rust-a1c21ed7e21642b85947ba5d030bbaeffbe377de.tar.gz rust-a1c21ed7e21642b85947ba5d030bbaeffbe377de.zip | |
Auto merge of #49504 - GuillaumeGomez:doc-all-types, r=QuietMisdreavus
Add page to list all crate's items r? @QuietMisdreavus
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/all.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/rustdoc/all.rs b/src/test/rustdoc/all.rs new file mode 100644 index 00000000000..ec391319b18 --- /dev/null +++ b/src/test/rustdoc/all.rs @@ -0,0 +1,30 @@ +// Copyright 2018 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/all.html '//a[@href="struct.Struct.html"]' 'Struct' +// @has foo/all.html '//a[@href="enum.Enum.html"]' 'Enum' +// @has foo/all.html '//a[@href="union.Union.html"]' 'Union' +// @has foo/all.html '//a[@href="constant.CONST.html"]' 'CONST' +// @has foo/all.html '//a[@href="static.STATIC.html"]' 'STATIC' +// @has foo/all.html '//a[@href="fn.function.html"]' 'function' + +pub struct Struct; +pub enum Enum { + X, + Y, +} +pub union Union { + x: u32, +} +pub const CONST: u32 = 0; +pub static STATIC: &str = "baguette"; +pub fn function() {} |
