blob: f008724f428b3e68a7f9cf78670bdeac09c542c0 [file] [log] [blame]
#[used]
static FOO: u32 = 0; // OK
#[used] //~ ERROR attribute must be applied to a `static` variable
fn foo() {}
#[used] //~ ERROR attribute must be applied to a `static` variable
struct Foo {}
#[used] //~ ERROR attribute must be applied to a `static` variable
trait Bar {}
#[used] //~ ERROR attribute must be applied to a `static` variable
impl Bar for Foo {}
fn main() {}