diff options
Diffstat (limited to 'src/test/ui/inner-attrs-on-impl.rs')
| -rw-r--r-- | src/test/ui/inner-attrs-on-impl.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/inner-attrs-on-impl.rs b/src/test/ui/inner-attrs-on-impl.rs deleted file mode 100644 index 636e8c4885e..00000000000 --- a/src/test/ui/inner-attrs-on-impl.rs +++ /dev/null @@ -1,24 +0,0 @@ -// run-pass - -struct Foo; - -impl Foo { - #![cfg(cfg_that_surely_doesnt_exist)] - - fn method(&self) -> bool { false } -} - -impl Foo { - #![cfg(not(cfg_that_surely_doesnt_exist))] - - // check that we don't eat attributes too eagerly. - #[cfg(cfg_that_surely_doesnt_exist)] - fn method(&self) -> bool { false } - - fn method(&self) -> bool { true } -} - - -pub fn main() { - assert!(Foo.method()); -} |
