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