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

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

13 lines
331 B
Rust
Raw Normal View History

2019-09-07 20:34:24 -05:00
// Unknown attributes fall back to unstable custom attributes.
2013-11-11 02:51:27 -06:00
#![feature(custom_inner_attributes)]
2013-11-11 02:51:27 -06:00
#![mutable_doc]
//~^ ERROR cannot find attribute `mutable_doc` in this scope
2013-11-25 09:22:40 -06:00
#[dance] mod a {}
//~^ ERROR cannot find attribute `dance` in this scope
2013-11-11 02:51:27 -06:00
#[dance] fn main() {}
//~^ ERROR cannot find attribute `dance` in this scope