]> git.lizzy.rs Git - rust.git/blob - tests/ui/binding/match-var-hygiene.rs
Move /src/test to /tests
[rust.git] / tests / 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 }