]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/src/lib2/lib.rs
Rollup merge of #87230 - GuillaumeGomez:docblock-table-overflow, r=notriddle
[rust.git] / src / test / rustdoc-gui / src / lib2 / lib.rs
1 // ignore-tidy-linelength
2
3 #![feature(doc_cfg)]
4
5 pub mod module {
6     pub mod sub_module {
7         pub mod sub_sub_module {
8             pub fn foo() {}
9         }
10         pub fn bar() {}
11     }
12     pub fn whatever() {}
13 }
14
15 pub fn foobar() {}
16
17 pub type Alias = u32;
18
19 #[doc(cfg(feature = "foo-method"))]
20 pub struct Foo {
21     pub x: Alias,
22 }
23
24 impl Foo {
25     pub fn a_method(&self) {}
26 }
27
28 pub trait Trait {
29     type X;
30     const Y: u32;
31
32     fn foo() {}
33 }
34
35 impl Trait for Foo {
36     type X = u32;
37     const Y: u32 = 0;
38 }
39
40
41 impl implementors::Whatever for Foo {}
42
43 pub mod sub_mod {
44     /// ```txt
45     /// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
46     /// ```
47     ///
48     /// ```
49     /// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
50     /// ```
51     pub struct Foo;
52 }
53
54 pub mod long_trait {
55     use std::ops::DerefMut;
56
57     pub trait ALongNameBecauseItHelpsTestingTheCurrentProblem: DerefMut<Target = u32>
58         + From<u128> + Send + Sync + AsRef<str> + 'static {}
59 }
60
61 pub mod long_table {
62     /// | This::is::a::kinda::very::long::header::number::one | This::is::a::kinda::very::long::header::number::two | This::is::a::kinda::very::long::header::number::one | This::is::a::kinda::very::long::header::number::two |
63     /// | ----------- | ----------- | ----------- | ----------- |
64     /// | This::is::a::kinda::long::content::number::one | This::is::a::kinda::very::long::content::number::two | This::is::a::kinda::long::content::number::one | This::is::a::kinda::very::long::content::number::two |
65     ///
66     /// I wanna sqdkfnqds f dsqf qds f dsqf dsq f dsq f qds f qds f qds f dsqq f dsf sqdf dsq fds f dsq f dq f ds fq sd fqds f dsq f sqd fsq df sd fdsqfqsd fdsq f dsq f dsqfd s dfq
67     pub struct Foo;
68 }