rust/tests/ui/attributes/tool_attributes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
190 B
Rust
Raw Normal View History

//@ run-pass
// Scoped attributes should not trigger an unused attributes lint.
#![deny(unused_attributes)]
fn main() {
#[rustfmt::skip]
foo ();
}
fn foo() {
assert!(true);
}