forked from bitflags/bitflags
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression introduced in bitflags#246
Add test case
- Loading branch information
1 parent
efab7f3
commit 75f7192
Showing
3 changed files
with
44 additions
and
32 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mod example { | ||
use bitflags::bitflags | ||
use bitflags::bitflags; | ||
|
||
bitflags! { | ||
pub struct Flags1: u32 { | ||
|
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,9 @@ | ||
use bitflags::bitflags; | ||
|
||
// ensure that no naming conflicts happen | ||
mod core {} | ||
mod _core {} | ||
|
||
bitflags! { | ||
struct Test: u8 {} | ||
} |