]> git.proxmox.com Git - rustc.git/blob - src/test/run-pass/binding/match-var-hygiene.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / binding / match-var-hygiene.rs
1 // run-pass
2 // shouldn't affect evaluation of $ex.
3 macro_rules! bad_macro { ($ex:expr) => (
4 {match 9 {_x => $ex}}
5 )}
6
7 fn main() {
8 match 8 {
9 _x => assert_eq!(bad_macro!(_x),8)
10 }
11 }