]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-with-attrs2.rs
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[rust.git] / src / test / ui / macros / macro-with-attrs2.rs
1 // run-pass
2
3 #[cfg(foo)]
4 macro_rules! foo { () => (1) }
5
6 #[cfg(not(foo))]
7 macro_rules! foo { () => (2) }
8
9 pub fn main() {
10     assert_eq!(foo!(), 2);
11 }