blob: d37d349026a0282b0e7b916cdb5b3b67ec7390ed (
plain)
1
2
3
4
5
6
7
8
|
//! 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
|