about summary refs log tree commit diff
path: root/tests/ui/macros/break-last-token-twice.rs
blob: 791f349ab38df47f0105baf705811a3c2a87eae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass

macro_rules! m {
    (static $name:ident: $t:ty = $e:expr) => {
        let $name: $t = $e;
    }
}

fn main() {
    m! {
        // Tricky: the trailing `>>=` token here is broken twice:
        // - into `>` and `>=`
        // - then the `>=` is broken into `>` and `=`
        static _x: Vec<Vec<u32>>= vec![]
    }
}