]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tool_attributes.rs
Detect pub fn attr wrong order like `async pub`
[rust.git] / src / test / ui / tool_attributes.rs
1 // run-pass
2 // Scoped attributes should not trigger an unused attributes lint.
3
4 #![deny(unused_attributes)]
5
6 fn main() {
7     #[rustfmt::skip]
8     foo ();
9 }
10
11 fn foo() {
12     assert!(true);
13 }