1 #![warn(clippy::empty_line_after_outer_attr)]
2 #![allow(clippy::assertions_on_constants)]
3 #![feature(custom_inner_attributes)]
6 // This should produce a warning
10 fn with_one_newline_and_comment() { assert!(true) }
12 // This should not produce a warning
15 fn with_no_newline_and_comment() { assert!(true) }
18 // This should produce a warning
21 fn with_one_newline() { assert!(true) }
23 // This should produce a warning, too
27 fn with_two_newlines() { assert!(true) }
30 // This should produce a warning
38 // This should produce a warning
46 // This should produce a warning
52 /// This doc comment should not produce a warning
54 /** This is also a doc comment and should not produce a warning
57 // This should not produce a warning
58 #[allow(non_camel_case_types)]
59 #[allow(missing_docs)]
60 #[allow(missing_docs)]
61 fn three_attributes() { assert!(true) }
63 // This should not produce a warning
65 Returns the escaped value of the textual representation of
68 pub fn function() -> bool {
72 // This should not produce a warning
73 #[derive(Clone, Copy)]
84 // This should not produce a warning because the empty line is inside a block comment
91 // This should not produce a warning