2018-04-02 17:56:33 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ 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'
|
2018-04-02 17:56:33 -05:00
|
|
|
|
|
|
|
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() {}
|
2018-04-13 08:58:43 -05:00
|
|
|
|
|
|
|
mod private_module {
|
|
|
|
pub struct ReexportedStruct;
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct'
|
|
|
|
//@ !hasraw foo/all.html 'private_module'
|
2018-04-13 08:58:43 -05:00
|
|
|
pub use private_module::ReexportedStruct;
|