blob: ff0c6e08a499190cb690eace8c86c82840f80978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ run-pass
// shouldn't affect evaluation of $ex:
macro_rules! bad_macro {
($ex:expr) => ({(|_x| { $ex }) (9) })
}
fn takes_x(_x : isize) {
assert_eq!(bad_macro!(_x),8);
}
fn main() {
takes_x(8);
}
|