mirror of
https://gitee.com/openharmony/third_party_rust_cfg-if
synced 2024-11-23 06:59:42 +00:00
commit
b289bb2a81
@ -26,6 +26,8 @@
|
||||
//! # fn main() {}
|
||||
//! ```
|
||||
|
||||
#![no_std]
|
||||
|
||||
#![doc(html_root_url = "http://alexcrichton.com/cfg-if")]
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(test, deny(warnings))]
|
||||
@ -67,7 +69,7 @@ macro_rules! __cfg_if_apply {
|
||||
mod tests {
|
||||
cfg_if! {
|
||||
if #[cfg(test)] {
|
||||
use std::option::Option as Option2;
|
||||
use core::option::Option as Option2;
|
||||
fn works1() -> Option2<u32> { Some(1) }
|
||||
} else {
|
||||
fn works1() -> Option<u32> { None }
|
||||
|
Loading…
Reference in New Issue
Block a user