2024-06-24 11:42:23 -05:00
|
|
|
//@no-rustfix
|
|
|
|
|
|
|
|
#![warn(clippy::too_long_first_doc_paragraph)]
|
|
|
|
|
2024-09-10 16:38:59 -05:00
|
|
|
pub mod foo {
|
|
|
|
|
|
|
|
// in foo.rs
|
|
|
|
//! A very short summary.
|
|
|
|
//! A much longer explanation that goes into a lot more detail about
|
|
|
|
//! how the thing works, possibly with doclinks and so one,
|
|
|
|
//! and probably spanning a many rows. Blablabla, it needs to be over
|
|
|
|
//! 200 characters so I needed to write something longeeeeeeer.
|
|
|
|
}
|
|
|
|
|
2024-06-24 11:42:23 -05:00
|
|
|
/// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
// Should not warn! (not an item visible on mod page)
|
|
|
|
/// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
|
|
|
impl Bar {}
|
|
|
|
|
|
|
|
// Should not warn! (less than 80 characters)
|
|
|
|
/// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
|
|
///
|
|
|
|
/// Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
2024-07-09 09:00:06 -05:00
|
|
|
pub enum Enum {
|
2024-06-24 11:42:23 -05:00
|
|
|
A,
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Lorem
|
|
|
|
/// ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
2024-07-09 09:00:06 -05:00
|
|
|
pub union Union {
|
2024-06-24 11:42:23 -05:00
|
|
|
a: u8,
|
|
|
|
b: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Should not warn! (title)
|
|
|
|
/// # bla
|
|
|
|
/// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
2024-07-09 09:00:06 -05:00
|
|
|
pub union Union2 {
|
2024-06-24 11:42:23 -05:00
|
|
|
a: u8,
|
|
|
|
b: u8,
|
|
|
|
}
|
|
|
|
|
2024-07-09 09:00:06 -05:00
|
|
|
// Should not warn! (not public)
|
|
|
|
/// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia
|
|
|
|
/// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
|
|
|
|
/// gravida non lacinia at, rhoncus eu lacus.
|
|
|
|
fn f() {}
|
|
|
|
|
2024-06-24 11:42:23 -05:00
|
|
|
fn main() {
|
|
|
|
// test code goes here
|
|
|
|
}
|