summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-31769.rs
blob: f56c6ea5656854bbf8fda0db213757e87676646f (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 a struct, enum, or union
}