rust/tests/ui/attributes/attr-bad-crate-attr.rs

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

9 lines
314 B
Rust
Raw Normal View History

//! Check that we permit a crate-level inner attribute but reject a dangling outer attribute which
//! does not have a following thing that it can target.
//!
//! See <https://doc.rust-lang.org/reference/attributes.html>.
#![attr = "val"]
#[attr = "val"] // Unterminated
//~^ ERROR expected item after attributes