SHARE
TWEET

Untitled

a guest Jul 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[cfg(target_os = "windows")]
  2. struct WindowsCode;
  3.  
  4. fn main() {
  5.   if cfg!(target_os = "windows") {
  6.     println!("windows");
  7.     // let wc = WindowsCode{};
  8.   } else {
  9.       println!("not windows");
  10.   }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top