]> git.lizzy.rs Git - rust.git/blob - tests/ui/empty_line_after_outer_attribute.rs
Warn on empty lines after outer attributes
[rust.git] / tests / ui / empty_line_after_outer_attribute.rs
1
2 #![warn(empty_line_after_outer_attr)]
3
4 // This should produce a warning
5 #[crate_type = "lib"]
6
7 fn with_one_newline() { assert!(true) }
8
9 // This should produce a warning, too
10 #[crate_type = "lib"]
11
12
13 fn with_two_newlines() { assert!(true) }
14
15 // This should not produce a warning
16 #[allow(non_camel_case_types)]
17 #[allow(missing_docs)]
18 #[allow(missing_docs)]
19 fn three_attributes() { assert!(true) }
20
21 fn main() { }