Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[derive(Debug)]
- struct A {
- a: bool,
- #[cfg(test)]
- b: bool,
- }
- fn main() {
- #[cfg(not(test))]
- println!("test | {:#?}", A { a: false });
- #[cfg(test)]
- println!("not test | {:#?}", A { a: false, b: true });
- }
Add Comment
Please, Sign In to add comment