diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-03 00:56:33 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-04 00:56:08 +0200 |
| commit | 43815a508c2ed924e1616138f8a7915caa79d4ba (patch) | |
| tree | cd7f5715ce26da918337c1b4e771c137ee7632e5 | |
| parent | 760e389fa64b3f36ab7d8c4941aedc4f9cbc4fc9 (diff) | |
| download | rust-43815a508c2ed924e1616138f8a7915caa79d4ba.tar.gz rust-43815a508c2ed924e1616138f8a7915caa79d4ba.zip | |
Add test for all.html
| -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() {} |
