Skip to content

Commit c6f794a

Browse files
committed
add test files for issue #12436
1 parent 88e1770 commit c6f794a

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[allow(unused)]
2+
mod foo {
3+
#![allow(dead_code)]
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

0 commit comments

Comments
 (0)