2 #![warn(empty_line_after_outer_attr)]
4 // This should produce a warning
8 fn with_one_newline_and_comment() { assert!(true) }
10 // This should not produce a warning
13 fn with_no_newline_and_comment() { assert!(true) }
16 // This should produce a warning
19 fn with_one_newline() { assert!(true) }
21 // This should produce a warning, too
25 fn with_two_newlines() { assert!(true) }
28 // This should produce a warning
36 // This should produce a warning
44 // This should produce a warning
50 /// This doc comment should not produce a warning
52 /** This is also a doc comment and should not produce a warning
55 // This should not produce a warning
56 #[allow(non_camel_case_types)]
57 #[allow(missing_docs)]
58 #[allow(missing_docs)]
59 fn three_attributes() { assert!(true) }