summaryrefslogtreecommitdiffstats
path: root/tests/pretty/attr-fn-inner.rs
blob: 6d9cb89f022987e6b6d63cfb97218b28bcc09ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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() {}
}