about summary refs log tree commit diff
path: root/tests/ui/attributes/cold-attribute-application-54044.rs
blob: cf027ac02b056fc32cb74006f11b4efdc048c61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;
}