Closed
Description
macro_rules! foo {
$($t:tt)* => (1);
}
fn main() {
foo!();
}
gives the following error on 1.5 stable (which is correct, though where it points is perhaps a little odd):
<anon>:6:5: 6:12 error: malformed macro lhs
<anon>:6 foo!();
^~~~~~~
but this error on 1.6 beta and the current nightly:
<anon>:6:5: 6:12 error: internal compiler error: malformed macro lhs
<anon>:6 foo!();
^~~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', ../src/libsyntax/diagnostic.rs:175