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-08 01:34:24 +00:00
// Unknown attributes fall back to unstable custom attributes.
2013-11-11 08:51:27 +00:00
#![feature(custom_inner_attributes)]
2013-11-11 08:51:27 +00:00
#![mutable_doc]
//~^ ERROR cannot find attribute `mutable_doc` in this scope
2013-11-25 15:22:40 +00:00
#[dance] mod a {}
//~^ ERROR cannot find attribute `dance` in this scope
2013-11-11 08:51:27 +00:00
#[dance] fn main() {}
//~^ ERROR cannot find attribute `dance` in this scope