rust/tests/ui/attributes/invalid-reprs.rs
2025-04-05 06:09:14 +09:00

6 lines
213 B
Rust

fn main() {
let y = #[repr(uwu(4))]
//~^ ERROR attributes on expressions are experimental
//~| ERROR unrecognized representation hint
(&id(5)); //~ ERROR: cannot find function `id` in this scope
}