3 #![allow(unused_variables)]
4 #![allow(unconditional_recursion)]
6 // Check that we do not ICE when compiling this
7 // macro, which reuses the expression `$id`
9 #![feature(box_patterns)]
16 Bar1, Bar2(isize, Box<Bar>),
20 fn elaborate_stm(&mut self, s: Box<Bar>) -> Box<Bar> {
21 macro_rules! declare {
22 ($id:expr, $rest:expr) => ({
24 Box::new(Bar::Bar2($id, $rest))
28 box Bar::Bar2(id, rest) => declare!(id, self.elaborate_stm(rest)),
33 fn check_id(&mut self, s: isize) { panic!() }