48 lines
1.4 KiB
Rust
48 lines
1.4 KiB
Rust
|
//@no-rustfix
|
||
|
|
||
|
#![warn(clippy::too_long_first_doc_paragraph)]
|
||
|
|
||
|
/// 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.
|
||
|
enum Enum {
|
||
|
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.
|
||
|
union Union {
|
||
|
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.
|
||
|
union Union2 {
|
||
|
a: u8,
|
||
|
b: u8,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
// test code goes here
|
||
|
}
|