summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/tool_attributes.rs
blob: be4a10c0ee933a2eba4a658bbdd5eb8536cd1c4b (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);
}