blob: 75f406232e2005ef0a78fec4a9fc82f08c03b2c7 [file] [log] [blame] [edit]
//@ run-pass
struct Foo;
impl Foo {
#![cfg(FALSE)]
fn method(&self) -> bool { false }
}
impl Foo {
#![cfg(not(FALSE))]
// check that we don't eat attributes too eagerly.
#[cfg(FALSE)]
fn method(&self) -> bool { false }
fn method(&self) -> bool { true }
}
pub fn main() {
assert!(Foo.method());
}