rust/tests/ui/attributes/obsolete-attr.rs
2023-01-11 09:32:08 +00:00

10 lines
278 B
Rust

// Obsolete attributes fall back to unstable custom attributes.
#[ab_isize = "stdcall"] extern "C" {}
//~^ ERROR cannot find attribute `ab_isize` in this scope
#[fixed_stack_segment] fn f() {}
//~^ ERROR cannot find attribute `fixed_stack_segment` in this scope
fn main() {}