File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
tests/ui/mixed_attributes_style Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ #[ allow( unused) ]
2
+ mod foo {
3
+ #![ allow( dead_code) ]
4
+ }
Original file line number Diff line number Diff line change
1
+ // issue 12436
2
+ #![ allow( clippy:: mixed_attributes_style) ]
3
+
4
+ #[ path = "auxiliary/submodule.rs" ]
5
+ mod submodule;
6
+
7
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: item has both inner and outer attributes
2
+ --> tests/ui/mixed_attributes_style/auxiliary/submodule.rs:1:1
3
+ |
4
+ LL | / #[allow(unused)]
5
+ LL | | mod foo {
6
+ LL | | #![allow(dead_code)]
7
+ | |________________________^
8
+ |
9
+ = note: `-D clippy::mixed-attributes-style` implied by `-D warnings`
10
+ = help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]`
11
+
12
+ error: aborting due to 1 previous error
13
+
You can’t perform that action at this time.
0 commit comments