rust/src/test/pretty/attr-fn-inner.rs

16 lines
322 B
Rust
Raw Normal View History

// pp-exact
// Testing that both the inner item and next outer item are
// preserved, and that the first outer item parsed in main is not
// accidentally carried over to each inner function
2015-02-18 03:00:20 +00:00
#![feature(custom_attribute)]
fn main() {
2014-04-04 20:45:24 +00:00
#![inner_attr]
#[outer_attr]
fn f() { }
#[outer_attr]
fn g() { }
}