about summary refs log tree commit diff
path: root/tests/ui/attributes/tool_attributes.rs
blob: fc05488e44c4a72c5f9de98ecc20900d75359fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-pass
// Scoped attributes should not trigger an unused attributes lint.

#![deny(unused_attributes)]

fn main() {
    #[rustfmt::skip]
    foo ();
}

fn foo() {
    assert!(true);
}