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