]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/auxiliary/all-item-types.rs
Rollup merge of #84464 - jyn514:type-kind, r=CraftSpider
[rust.git] / src / test / rustdoc / auxiliary / all-item-types.rs
1 #![feature(extern_types)]
2
3 pub mod foo_mod {}
4 extern "C" {
5     pub fn foo_ffn();
6     pub static FOO_FSTATIC: FooStruct;
7     pub type FooFType;
8 }
9 pub fn foo_fn() {}
10 pub trait FooTrait {}
11 pub struct FooStruct;
12 pub enum FooEnum {}
13 pub union FooUnion {
14     x: (),
15 }
16 pub type FooType = FooStruct;
17 pub static FOO_STATIC: FooStruct = FooStruct;
18 pub const FOO_CONSTANT: FooStruct = FooStruct;
19 #[macro_export]
20 macro_rules! foo_macro {
21     () => ();
22 }