| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:6:1 | |
| | | |
| LL | / #[crate_type = "lib"] | |
| LL | | | |
| | |_^ | |
| LL | fn first_in_crate() {} | |
| | ----------------- the attribute applies to this function | |
| | | |
| = note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings` | |
| = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]` | |
| = help: if the empty line is unintentional, remove it | |
| help: if the attribute should apply to the crate use an inner attribute | |
| | | |
| LL | #![crate_type = "lib"] | |
| | + | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:14:1 | |
| | | |
| LL | / #[inline] | |
| LL | | | |
| | |_^ | |
| LL | /// some comment | |
| LL | fn with_one_newline_and_comment() {} | |
| | ------------------------------- the attribute applies to this function | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:24:1 | |
| | | |
| LL | / #[inline] | |
| LL | | | |
| | |_^ | |
| LL | fn with_one_newline() {} | |
| | ------------------- the attribute applies to this function | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty lines after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:31:5 | |
| | | |
| LL | / #[crate_type = "lib"] | |
| LL | | | |
| LL | | | |
| | |_^ | |
| LL | fn with_two_newlines() {} | |
| | -------------------- the attribute applies to this function | |
| | | |
| = help: if the empty lines are unintentional, remove them | |
| help: if the attribute should apply to the parent module use an inner attribute | |
| | | |
| LL | #![crate_type = "lib"] | |
| | + | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:38:1 | |
| | | |
| LL | / #[doc = "doc attributes should be considered attributes"] | |
| LL | | | |
| | |_^ | |
| LL | enum Baz { | |
| | -------- the attribute applies to this enum | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:46:1 | |
| | | |
| LL | / #[repr(C)] | |
| LL | | | |
| | |_^ | |
| LL | struct Foo { | |
| | ---------- the attribute applies to this struct | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:54:1 | |
| | | |
| LL | / #[allow(dead_code)] | |
| LL | | | |
| | |_^ | |
| LL | mod foo {} | |
| | ------- the attribute applies to this module | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:59:1 | |
| | | |
| LL | / #[inline] | |
| LL | | // Still lint cases where the empty line does not immediately follow the attribute | |
| LL | | | |
| | |_^ | |
| LL | fn comment_before_empty_line() {} | |
| | ---------------------------- the attribute applies to this function | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: empty lines after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:65:1 | |
| | | |
| LL | / #[allow(unused)] | |
| ... | | |
| LL | | | |
| | |_^ | |
| LL | pub fn isolated_comment() {} | |
| | ----------------------- the attribute applies to this function | |
| | | |
| = help: if the empty lines are unintentional, remove them | |
| error: empty line after outer attribute | |
| --> tests/ui/empty_line_after/outer_attribute.rs:122:5 | |
| | | |
| LL | / #[repr(align(536870912))] | |
| LL | | | |
| | |_^ | |
| LL | enum Aligned { | |
| | ------------ the attribute applies to this enum | |
| | | |
| = help: if the empty line is unintentional, remove it | |
| error: aborting due to 10 previous errors | |