Files
rust/tests/ui/conditional-compilation/cfg-attr-parsed-span-issue-154801.rs
T
2026-04-25 11:11:23 +08:00

12 lines
319 B
Rust

fn main() {
let _x = 30;
#[cfg_attr(, (cc))] //~ ERROR expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `,`
_x //~ ERROR mismatched types
}
fn inline_case() {
let _x = 30;
#[inline] //~ ERROR `#[inline]` attribute cannot be used on expressions
_x //~ ERROR mismatched types
}