]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/attr-fn-inner.rs
Rollup merge of #57042 - pnkfelix:issue-57038-sidestep-ice-in-fieldplacement-count...
[rust.git] / src / test / pretty / attr-fn-inner.rs
1 // pp-exact
2 // Testing that both the inner item and next outer item are
3 // preserved, and that the first outer item parsed in main is not
4 // accidentally carried over to each inner function
5
6 #![feature(custom_attribute)]
7
8 fn main() {
9     #![inner_attr]
10     #[outer_attr]
11     fn f() { }
12
13     #[outer_attr]
14     fn g() { }
15 }