mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
21 lines
307 B
Rust
21 lines
307 B
Rust
//@ 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() {}
|