]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | // run-pass |
1a4d82fc JJ |
2 | // shouldn't affect evaluation of $ex: |
3 | macro_rules! bad_macro { | |
4 | ($ex:expr) => ({(|_x| { $ex }) (9) }) | |
223e47cc LB |
5 | } |
6 | ||
c34b1796 | 7 | fn takes_x(_x : isize) { |
1a4d82fc | 8 | assert_eq!(bad_macro!(_x),8); |
223e47cc | 9 | } |
223e47cc | 10 | fn main() { |
1a4d82fc | 11 | takes_x(8); |
223e47cc | 12 | } |