about summary refs log tree commit diff
path: root/tests/ui/empty/empty-attributes.rs
blob: 027d30cce17f0ba62e664ba28f4cbd8ceba7db0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![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() {}