]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lambda-var-hygiene.rs
Rollup merge of #87343 - steffahn:fix_unsound_zip_optimization_only_regression_fix...
[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 }