mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
4bb7bf64e0
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
15 lines
315 B
Rust
15 lines
315 B
Rust
// 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;
|
|
}
|