mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
10 lines
306 B
Rust
10 lines
306 B
Rust
// Test for #146325.
|
|
// Ensure that when we encounter a macro invocation in an attribute, we don't suggest nonsense.
|
|
|
|
#[deprecated(note = concat!("a", "b"))]
|
|
struct X;
|
|
//~^^ ERROR: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found
|
|
//~| NOTE: macro calls are not allowed here
|
|
|
|
fn main() {}
|