summary refs log tree commit diff
path: root/src/test/pretty/attr-fn-inner.rs
blob: 87e62c004fed4e49aca82197e26997b85fb50afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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

fn main() {
    #[inner_attr];
    #[outer_attr]
    fn f() { }

    #[outer_attr]
    fn g() { }
}