blob: 8c79683f49a96512faf1d1d35c4186433cde7d69 [file] [log] [blame]
#![feature(rustc_attrs)]
macro_rules! test { ($nm:ident,
#[$a:meta],
$i:item) => (mod $nm { #[$a] $i }); }
test!(a,
#[cfg(FALSE)],
pub fn bar() { });
test!(b,
#[cfg(not(FALSE))],
pub fn bar() { });
// test1!(#[bar])
#[rustc_dummy]
fn main() {
a::bar(); //~ ERROR cannot find function `bar` in module `a`
b::bar();
}