]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lambda-var-hygiene.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / ui / lambda-var-hygiene.rs
1 // run-pass
2 // shouldn't affect evaluation of $ex:
3 macro_rules! bad_macro {
4     ($ex:expr) => ({(|_x| { $ex }) (9) })
5 }
6
7 fn takes_x(_x : isize) {
8     assert_eq!(bad_macro!(_x),8);
9 }
10 fn main() {
11     takes_x(8);
12 }