]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/attr-fn-inner.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / pretty / attr-fn-inner.rs
1 // Testing that both the inner item and next outer item are
2 // preserved, and that the first outer item parsed in main is not
3 // accidentally carried over to each inner function
4
5 // pp-exact
6
7 #![feature(rustc_attrs)]
8
9 fn main() {
10     #![rustc_dummy]
11     #[rustc_dummy]
12     fn f() {}
13
14     #[rustc_dummy]
15     fn g() {}
16 }