]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/src/lib2/lib.rs
Auto merge of #86665 - FabianWolff:layout-field-thir-unsafeck, r=oli-obk
[rust.git] / src / test / rustdoc-gui / src / lib2 / lib.rs
1 pub mod module {
2     pub mod sub_module {
3         pub mod sub_sub_module {
4             pub fn foo() {}
5         }
6         pub fn bar() {}
7     }
8     pub fn whatever() {}
9 }
10
11 pub fn foobar() {}
12
13 pub type Alias = u32;
14
15 pub struct Foo {
16     pub x: Alias,
17 }
18
19 impl Foo {
20     pub fn a_method(&self) {}
21 }
22
23 pub trait Trait {
24     type X;
25     const Y: u32;
26
27     fn foo() {}
28 }
29
30 impl Trait for Foo {
31     type X = u32;
32     const Y: u32 = 0;
33 }
34
35 impl implementors::Whatever for Foo {}