rust/tests/ui/hygiene/unpretty-debug.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
307 B
Rust
Raw Normal View History

//@ 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() {}