]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/all.rs
Update upstream source from tag 'upstream/1.60.0+dfsg1'
[rustc.git] / src / test / rustdoc / all.rs
1 #![crate_name = "foo"]
2
3 // @has foo/all.html '//a[@href="struct.Struct.html"]' 'Struct'
4 // @has foo/all.html '//a[@href="enum.Enum.html"]' 'Enum'
5 // @has foo/all.html '//a[@href="union.Union.html"]' 'Union'
6 // @has foo/all.html '//a[@href="constant.CONST.html"]' 'CONST'
7 // @has foo/all.html '//a[@href="static.STATIC.html"]' 'STATIC'
8 // @has foo/all.html '//a[@href="fn.function.html"]' 'function'
9
10 pub struct Struct;
11 pub enum Enum {
12 X,
13 Y,
14 }
15 pub union Union {
16 x: u32,
17 }
18 pub const CONST: u32 = 0;
19 pub static STATIC: &str = "baguette";
20 pub fn function() {}
21
22 mod private_module {
23 pub struct ReexportedStruct;
24 }
25
26 // @has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct'
27 // @!has foo/all.html 'private_module'
28 pub use private_module::ReexportedStruct;