rust/tests/ui/attributes/obsolete-attr.rs

10 lines
278 B
Rust
Raw Normal View History

2019-09-07 20:34:24 -05:00
// Obsolete attributes fall back to unstable custom attributes.
2013-11-06 00:30:19 -06:00
2020-09-01 16:12:52 -05:00
#[ab_isize = "stdcall"] extern "C" {}
//~^ ERROR cannot find attribute `ab_isize` in this scope
2013-11-06 00:30:19 -06:00
#[fixed_stack_segment] fn f() {}
//~^ ERROR cannot find attribute `fixed_stack_segment` in this scope
2013-11-25 08:17:01 -06:00
2013-11-06 00:30:19 -06:00
fn main() {}