]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31769.rs
Rollup merge of #65613 - Mark-Simulacrum:rustdoc-preserve-ws, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-31769.rs
1 fn main() {
2     #[inline] struct Foo;  //~ ERROR attribute should be applied to function or closure
3     #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum, or union
4 }