forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test files for issue rust-lang#12436
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#[allow(unused)] | ||
mod foo { | ||
#![allow(dead_code)] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// issue 12436 | ||
#![allow(clippy::mixed_attributes_style)] | ||
|
||
#[path = "auxiliary/submodule.rs"] | ||
mod submodule; | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error: item has both inner and outer attributes | ||
--> tests/ui/mixed_attributes_style/auxiliary/submodule.rs:1:1 | ||
| | ||
LL | / #[allow(unused)] | ||
LL | | mod foo { | ||
LL | | #![allow(dead_code)] | ||
| |________________________^ | ||
| | ||
= note: `-D clippy::mixed-attributes-style` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]` | ||
|
||
error: aborting due to 1 previous error | ||
|