2024-02-26 11:25:28 +00:00
|
|
|
error: item has both inner and outer attributes
|
2024-03-14 09:06:18 +00:00
|
|
|
--> tests/ui/mixed_attributes_style.rs:10:1
|
2024-02-26 11:25:28 +00:00
|
|
|
|
|
|
|
|
LL | / #[allow(unused)]
|
|
|
|
LL | | fn foo1() {
|
|
|
|
LL | | #![allow(unused)]
|
|
|
|
| |_____________________^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::mixed-attributes-style` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]`
|
|
|
|
|
|
|
|
error: item has both inner and outer attributes
|
2024-03-14 09:06:18 +00:00
|
|
|
--> tests/ui/mixed_attributes_style.rs:24:1
|
2024-02-26 11:25:28 +00:00
|
|
|
|
|
|
|
|
LL | / /// linux
|
|
|
|
LL | |
|
|
|
|
LL | | fn foo4() {
|
|
|
|
LL | | //! windows
|
|
|
|
| |_______________^
|
|
|
|
|
|
|
|
error: item has both inner and outer attributes
|
2024-03-14 09:06:18 +00:00
|
|
|
--> tests/ui/mixed_attributes_style.rs:39:1
|
2024-02-26 11:25:28 +00:00
|
|
|
|
|
|
|
|
LL | / #[allow(unused)]
|
|
|
|
LL | | mod bar {
|
|
|
|
LL | | #![allow(unused)]
|
|
|
|
| |_____________________^
|
|
|
|
|
2024-03-14 09:06:18 +00:00
|
|
|
error: item has both inner and outer attributes
|
|
|
|
--> tests/ui/mixed_attributes_style.rs:69:9
|
|
|
|
|
|
|
|
|
LL | / #[allow(dead_code)]
|
|
|
|
LL | | mod inner_mod {
|
|
|
|
LL | | #![allow(dead_code)]
|
|
|
|
| |________________________________^
|
|
|
|
|
|
|
|
error: item has both inner and outer attributes
|
|
|
|
--> tests/ui/mixed_attributes_style.rs:80:9
|
|
|
|
|
|
|
|
|
LL | / #[allow(dead_code)]
|
|
|
|
LL | | mod inner_mod {
|
|
|
|
LL | | #![allow(dead_code)]
|
|
|
|
| |________________________________^
|
|
|
|
|
|
|
|
error: item has both inner and outer attributes
|
|
|
|
--> tests/ui/mixed_attributes_style.rs:85:5
|
|
|
|
|
|
|
|
|
LL | / /// Nested mod
|
2024-08-17 19:38:10 +00:00
|
|
|
LL | |
|
2024-03-14 09:06:18 +00:00
|
|
|
LL | | #[allow(unused)]
|
|
|
|
LL | | mod nest_mod_2 {
|
|
|
|
LL | | #![allow(unused)]
|
|
|
|
| |_________________________^
|
|
|
|
|
|
|
|
error: item has both inner and outer attributes
|
2024-08-17 19:38:10 +00:00
|
|
|
--> tests/ui/mixed_attributes_style.rs:91:9
|
2024-03-14 09:06:18 +00:00
|
|
|
|
|
|
|
|
LL | / #[allow(dead_code)]
|
|
|
|
LL | | mod inner_mod {
|
|
|
|
LL | | #![allow(dead_code)]
|
|
|
|
| |________________________________^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2024-02-26 11:25:28 +00:00
|
|
|
|