2012-01-15 17:23:59 -08:00
|
|
|
// 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-17 19:00:20 -08:00
|
|
|
#![feature(custom_attribute)]
|
|
|
|
|
2012-01-15 17:23:59 -08:00
|
|
|
fn main() {
|
2014-04-04 13:45:24 -07:00
|
|
|
#![inner_attr]
|
2012-01-15 17:23:59 -08:00
|
|
|
#[outer_attr]
|
|
|
|
fn f() { }
|
|
|
|
|
|
|
|
#[outer_attr]
|
|
|
|
fn g() { }
|
|
|
|
}
|