summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/unpretty-debug.rs
blob: 6e936bb3d830c5adceab5921296024c4ca4ab342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass
// compile-flags: -Zunpretty=expanded,hygiene

// Don't break whenever Symbol numbering changes
// normalize-stdout-test "\d+#" -> "0#"

// minimal junk
#![feature(no_core)]
#![no_core]

macro_rules! foo {
    ($x: ident) => { y + $x }
}

fn bar() {
    let x = 1;
    foo!(x)
}

fn y() {}