2019-07-15 22:26:45 +01:00
|
|
|
// check-pass
|
|
|
|
// compile-flags: -Zunpretty=expanded,hygiene
|
|
|
|
|
|
|
|
// Don't break whenever Symbol numbering changes
|
|
|
|
// normalize-stdout-test "\d+#" -> "0#"
|
|
|
|
|
2014-08-11 22:01:37 +10:00
|
|
|
// minimal junk
|
2015-07-29 17:01:14 -07:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
2014-08-11 22:01:37 +10:00
|
|
|
|
|
|
|
macro_rules! foo {
|
|
|
|
($x: ident) => { y + $x }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
let x = 1;
|
|
|
|
foo!(x)
|
|
|
|
}
|
2016-05-08 04:18:55 +00:00
|
|
|
|
|
|
|
fn y() {}
|