about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-10 23:23:11 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-10 23:58:18 +0000
commitb3d73995dac028f287604dbe763b236be154e787 (patch)
treef6817decd6ef225c839cfecefa7aadc0ca542721 /src/test
parentf80514426aaf59967e08f32ec44c1876cdeffe9d (diff)
Fix ICE on certain sequence repetitions.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-39709.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-39709.rs b/src/test/compile-fail/issue-39709.rs
new file mode 100644
index 00000000000..0f66fe84393
--- /dev/null
+++ b/src/test/compile-fail/issue-39709.rs
@@ -0,0 +1,15 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn main() {
+    println!("{}", { macro_rules! x { ($()*) => {} } 33 });
+    //~^ ERROR no syntax variables matched as repeating at this depth
+}
+