]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-5095.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-5095.rs
1 // rustfmt-wrap_comments: true
2
3 pub mod a_long_name {
4     pub mod b_long_name {
5         pub mod c_long_name {
6             pub mod d_long_name {
7                 pub mod e_long_name {
8                     pub struct Bananas;
9                     impl Bananas {
10                         pub fn fantastic() {}
11                     }
12
13                     pub mod f_long_name {
14                         pub struct Apples;
15                     }
16                 }
17             }
18         }
19     }
20 }
21
22 /// Check out [my other struct] ([`Bananas`]) and [the method it has].
23 ///
24 /// [my other struct]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::f_long_name::Apples
25 /// [`Bananas`]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic()
26 /// [the method it has]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic()
27 pub struct A;