about summary refs log tree commit diff
path: root/tests/ui/macros/invalid-fragment-specifier.rs
blob: 1daf0a95434f97cc3c0975ad90da8e1dc9b82704 (plain)
1
2
3
4
5
6
7
8
9
10
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() {}