]> git.lizzy.rs Git - rust.git/blob - tests/pretty/attr-fn-inner.rs
Add ~const bounds trait bounds when using derive_const
[rust.git] / tests / 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 }