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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
278 B
Rust
Raw Normal View History

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