about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-05 05:20:27 +0000
committerbors <bors@rust-lang.org>2016-01-05 05:20:27 +0000
commitdbacacda8ac5dba72afd57b971c71a71242e7f67 (patch)
tree809ee77b45119612ff208903a6beaa7cd8b1cbbe /src/test
parent803c3e2ee8be0516d68131d4c8bae31cfce67891 (diff)
parent6e68cdfcc212943fdee9ac5bf4c5e7e243790aae (diff)
downloadrust-dbacacda8ac5dba72afd57b971c71a71242e7f67.tar.gz
rust-dbacacda8ac5dba72afd57b971c71a71242e7f67.zip
Auto merge of #30708 - GuillaumeGomez:malformed_macro, r=sanxiyn
Part of #30669
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/malformed_macro_lhs.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/compile-fail/malformed_macro_lhs.rs b/src/test/compile-fail/malformed_macro_lhs.rs
new file mode 100644
index 00000000000..88e19af2eea
--- /dev/null
+++ b/src/test/compile-fail/malformed_macro_lhs.rs
@@ -0,0 +1,17 @@
+// Copyright 2015 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.
+
+macro_rules! my_precioooous {
+    $($t:tt)* => (1);
+}
+
+fn main() {
+    my_precioooous!(); //~ ERROR malformed macro lhs
+}