11error: item has both inner and outer attributes
2- --> tests/ui/mixed_attributes_style.rs:4 :1
2+ --> tests/ui/mixed_attributes_style.rs:8 :1
33 |
44LL | / #[allow(unused)]
55LL | | fn foo1() {
@@ -10,7 +10,7 @@ LL | | #![allow(unused)]
1010 = help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]`
1111
1212error: item has both inner and outer attributes
13- --> tests/ui/mixed_attributes_style.rs:18 :1
13+ --> tests/ui/mixed_attributes_style.rs:22 :1
1414 |
1515LL | / /// linux
1616LL | |
@@ -19,12 +19,37 @@ LL | | //! windows
1919 | |_______________^
2020
2121error: item has both inner and outer attributes
22- --> tests/ui/mixed_attributes_style.rs:33 :1
22+ --> tests/ui/mixed_attributes_style.rs:37 :1
2323 |
2424LL | / #[allow(unused)]
2525LL | | mod bar {
2626LL | | #![allow(unused)]
2727 | |_____________________^
2828
29- error: aborting due to 3 previous errors
29+ error: item has both inner and outer attributes
30+ --> tests/ui/mixed_attributes_style.rs:72:5
31+ |
32+ LL | / #[allow(dead_code)]
33+ LL | | mod inner_mod {
34+ LL | | #![allow(dead_code)]
35+ | |____________________________^
36+
37+ error: item has both inner and outer attributes
38+ --> tests/ui/mixed_attributes_style.rs:77:1
39+ |
40+ LL | / /// Nested mod - Good
41+ LL | | #[allow(unused)]
42+ LL | | mod nest_mod_2 {
43+ LL | | #![allow(unused)]
44+ | |_____________________^
45+
46+ error: item has both inner and outer attributes
47+ --> tests/ui/mixed_attributes_style.rs:82:5
48+ |
49+ LL | / #[allow(dead_code)]
50+ LL | | mod inner_mod {
51+ LL | | #![allow(dead_code)]
52+ | |____________________________^
53+
54+ error: aborting due to 6 previous errors
3055
0 commit comments