summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4427.rs
blob: c8a37ead8cb29de9bc89e785e017359d031dc597 (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
const A: usize =
    // Some constant
    2;

const B: usize =
    /* constant */
    3;

const C: usize = /* foo */ 5;

const D: usize = // baz
    /*    Some constant */
    /* ba */
    {
        3
        // foo
    };
const E: usize = /* foo */ 5;
const F: usize = { 7 };
const G: usize =
    /* foooooooooooooooooooooooooooooooooooooooooooooooooooooooo0000000000000000xx00 */
    5;
const H: usize = /* asdfasdf */
    match G > 1 {
        true => 1,
        false => 3,
    };

pub static FOO_BAR: Vec<u8> = //f
    { vec![] };