Guest User

Untitled

a guest
Oct 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #[derive(Debug)]
  2. struct A {
  3. a: bool,
  4. #[cfg(test)]
  5. b: bool,
  6. }
  7.  
  8. fn main() {
  9. #[cfg(not(test))]
  10. println!("test | {:#?}", A { a: false });
  11.  
  12. #[cfg(test)]
  13. println!("not test | {:#?}", A { a: false, b: true });
  14. }
Add Comment
Please, Sign In to add comment