summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-5095.rs
blob: 6981a65808c900ab1ca33ba66c518cf6047f09f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// rustfmt-wrap_comments: true

pub mod a_long_name {
    pub mod b_long_name {
        pub mod c_long_name {
            pub mod d_long_name {
                pub mod e_long_name {
                    pub struct Bananas;
                    impl Bananas {
                        pub fn fantastic() {}
                    }

                    pub mod f_long_name {
                        pub struct Apples;
                    }
                }
            }
        }
    }
}

/// Check out [my other struct] ([`Bananas`]) and [the method it has].
///
/// [my other struct]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::f_long_name::Apples
/// [`Bananas`]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic()
/// [the method it has]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic()
pub struct A;