rust/tests/target/issue-5095.rs
Dom 4389a4ce49 fix: do not wrap reference-style doc links
Prevents wrap_comments from incorrectly wrapping reference-style doc
links.
2021-11-23 16:17:52 -06:00

28 lines
895 B
Rust

// 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;