about summary refs log tree commit diff
path: root/tests/ui/hygiene/unpretty-debug.rs
blob: 4d3d139deda30eb7e35388f855592b1217543a89 (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: "\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() {}