mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 13:24:22 +00:00
11 lines
263 B
Rust
11 lines
263 B
Rust
macro_rules! test {
|
|
($wrong:id) => {};
|
|
} //~^ ERROR: invalid fragment specifier `id`
|
|
|
|
// guard against breaking raw identifier diagnostic
|
|
macro_rules! test_raw_identifer {
|
|
($wrong:r#if) => {};
|
|
} //~^ ERROR: invalid fragment specifier `r#if`
|
|
|
|
fn main() {}
|