blob: cf027ac02b056fc32cb74006f11b4efdc048c61d [file] [log] [blame]
// https://github.com/rust-lang/rust/issues/54044
#![deny(unused_attributes)] //~ NOTE lint level is defined here
#[cold]
//~^ ERROR attribute cannot be used on
//~| WARN previously accepted
struct Foo;
fn main() {
#[cold]
//~^ ERROR attribute cannot be used on
//~| WARN previously accepted
5;
}