Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
19
vendor/bitflags/tests/compile-pass/visibility/pub_in.rs
vendored
Normal file
19
vendor/bitflags/tests/compile-pass/visibility/pub_in.rs
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
mod a {
|
||||
mod b {
|
||||
use bitflags::bitflags;
|
||||
|
||||
bitflags! {
|
||||
pub(in crate::a) struct Flags: u32 {
|
||||
const FLAG_A = 0b00000001;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flags() -> u32 {
|
||||
b::Flags::FLAG_A.bits()
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(0b00000001, a::flags());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue