summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3302.rs
blob: c037584fd71078218e7a19f356727021e34d5eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// rustfmt-version: Two

macro_rules! moo1 {
    () => {
        bar! {
"
"
        }
    };
}

macro_rules! moo2 {
    () => {
        bar! {
        "
"
        }
    };
}

macro_rules! moo3 {
    () => {
        42
        /*
        bar! {
        "
        toto
tata"
        }
        */
    };
}

macro_rules! moo4 {
    () => {
        bar! {
"
    foo
        bar
baz"
        }
    };
}