diff options
Diffstat (limited to 'libc/src/macros.rs')
-rw-r--r-- | libc/src/macros.rs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/libc/src/macros.rs b/libc/src/macros.rs index 5811c84..8429442 100644 --- a/libc/src/macros.rs +++ b/libc/src/macros.rs @@ -69,40 +69,3 @@ macro_rules! f { macro_rules! __item { ($i:item) => ($i) } - -#[cfg(test)] -mod tests { - cfg_if! { - if #[cfg(test)] { - use std::option::Option as Option2; - fn works1() -> Option2<u32> { Some(1) } - } else { - fn works1() -> Option<u32> { None } - } - } - - cfg_if! { - if #[cfg(foo)] { - fn works2() -> bool { false } - } else if #[cfg(test)] { - fn works2() -> bool { true } - } else { - fn works2() -> bool { false } - } - } - - cfg_if! { - if #[cfg(foo)] { - fn works3() -> bool { false } - } else { - fn works3() -> bool { true } - } - } - - #[test] - fn it_works() { - assert!(works1().is_some()); - assert!(works2()); - assert!(works3()); - } -} |