rust/src/test/pretty/attr-fn-inner.rs
Vadim Petrochenkov ea4ad555d7 Introduce #[rustc_dummy] attribute and use it in tests
Unlike other built-in attributes, this attribute accepts any input
2019-06-08 23:55:25 +03:00

16 lines
321 B
Rust

// 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
// pp-exact
#![feature(rustc_attrs)]
fn main() {
#![rustc_dummy]
#[rustc_dummy]
fn f() { }
#[rustc_dummy]
fn g() { }
}