// except according to those terms.
// shouldn't affect evaluation of $ex:
-macro_rules! bad_macro (($ex:expr) => ({let _x = 9; $ex}))
-fn main() {
- let _x = 8;
- assert_eq!(bad_macro!(_x),8)
+macro_rules! bad_macro {
+ ($ex:expr) => ({let _x = 9i; $ex})
+}
+
+pub fn main() {
+ let _x = 8i;
+ assert_eq!(bad_macro!(_x),8i)
}