rust/tests/ui/issues/issue-31769.rs
Jonathan Brouwer 4bb7bf64e0
Update uitests
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-14 18:18:42 +02:00

4 lines
172 B
Rust

fn main() {
#[inline] struct Foo; //~ ERROR attribute cannot be used on
#[repr(C)] fn foo() {} //~ ERROR attribute should be applied to a struct, enum, or union
}