rust/tests/ui/empty/empty-attributes.rs
2024-06-25 17:22:22 +02:00

16 lines
401 B
Rust

#![deny(unused_attributes)]
#![allow()] //~ ERROR unused attribute
#![expect()] //~ ERROR unused attribute
#![warn()] //~ ERROR unused attribute
#![deny()] //~ ERROR unused attribute
#![forbid()] //~ ERROR unused attribute
#![feature()] //~ ERROR unused attribute
#[repr()] //~ ERROR unused attribute
pub struct S;
#[target_feature()] //~ ERROR unused attribute
pub unsafe fn foo() {}
fn main() {}