mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
e3859d206c
Also replaces an incomplete test
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() {}
|