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