mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00

- Move `tests/ui/attr-bad-crate-attr.rs` to `tests/ui/attributes/`. - Briefly document test intent add link to relevant Reference docs.
10 lines
306 B
Rust
10 lines
306 B
Rust
//! 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>.
|
|
|
|
//@ error-pattern: expected item
|
|
|
|
#![attr = "val"]
|
|
#[attr = "val"] // Unterminated
|