summary refs log tree commit diff
path: root/src/test/ui/issues/issue-31769.rs
blob: 45eb5e4008089c2ea6206109ac4d59159c466a48 (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
}