]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/inert-attribute-order.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / inert-attribute-order.rs
1 // Order of inert attributes, both built-in and custom is preserved during expansion.
2
3 // check-pass
4 // compile-flags: -Z span-debug
5 // aux-build:test-macros.rs
6
7 #![no_std] // Don't load unnecessary hygiene information from std
8 extern crate std;
9
10 #[macro_use]
11 extern crate test_macros;
12
13 /// 1
14 #[rustfmt::attr2]
15 #[doc = "3"]
16 #[print_attr(nodebug)]
17 #[doc = "4"]
18 #[rustfmt::attr5]
19 /// 6
20 #[print_attr(nodebug)]
21 struct S;
22
23 fn main() {}