about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/empty_line_after/outer_attribute.stderr
blob: 331bc7c8856ddeed0f9f64d2fbc8d5fb20eb386a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
error: empty line after outer attribute
  --> tests/ui/empty_line_after/outer_attribute.rs:5: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:13: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:23: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:30: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:37: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:45: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:53: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:58: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:64: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:121: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