summary refs log tree commit diff
path: root/src/test/ui/issues/issue-31769.rs
blob: 794c1d19893885c299c32f9ee7e4a310a4c359ba (plain)
1
2
3
4
fn main() {
    #[inline] struct Foo;  //~ ERROR attribute should be applied to function or closure
    #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum or union
}