2022-09-20 10:10:38 -05:00
|
|
|
#![crate_name = "foo"]
|
2023-03-21 10:44:06 -05:00
|
|
|
#![feature(rustc_attrs)]
|
2022-09-20 10:10:38 -05:00
|
|
|
|
|
|
|
// @has 'foo/all.html'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Structs'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Enums'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Unions'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Functions'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Traits'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Macros'
|
2023-08-21 14:53:39 -05:00
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Type Aliases'
|
2022-09-20 10:10:38 -05:00
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Constants'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Statics'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//li' 'Primitive Types'
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
pub enum Enum {
|
|
|
|
A,
|
|
|
|
}
|
|
|
|
pub union Bar {
|
|
|
|
a: u8,
|
|
|
|
b: u16,
|
|
|
|
}
|
|
|
|
pub fn foo() {}
|
|
|
|
pub trait Trait {}
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! foo {
|
2023-08-21 14:53:39 -05:00
|
|
|
() => {};
|
2022-09-20 10:10:38 -05:00
|
|
|
}
|
|
|
|
pub type Type = u8;
|
|
|
|
pub const FOO: u8 = 0;
|
|
|
|
pub static BAR: u8 = 0;
|
2023-03-21 10:44:06 -05:00
|
|
|
#[rustc_doc_primitive = "u8"]
|
2022-09-20 10:10:38 -05:00
|
|
|
mod u8 {}
|