about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorAlex Burka <alex@alexburka.com>2017-04-03 00:09:07 +0000
committerAlex Burka <alex@alexburka.com>2017-04-15 19:06:58 +0000
commite0cd76674d3f5cf68d83789bad27dec9dcf53501 (patch)
tree2ad22a4ee7ee6dfb04e9350c77c754e7229beafc /src/test/compile-fail
parent1d468050574cc28a06ef684727e1106fa660a20c (diff)
downloadrust-e0cd76674d3f5cf68d83789bad27dec9dcf53501.tar.gz
rust-e0cd76674d3f5cf68d83789bad27dec9dcf53501.zip
feature gate :vis matcher
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/feature-gate-macro-vis-matcher.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/compile-fail/feature-gate-macro-vis-matcher.rs b/src/test/compile-fail/feature-gate-macro-vis-matcher.rs
new file mode 100644
index 00000000000..5d6f2acea83
--- /dev/null
+++ b/src/test/compile-fail/feature-gate-macro-vis-matcher.rs
@@ -0,0 +1,19 @@
+// 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.
+
+// Test that the MSP430 interrupt ABI cannot be used when msp430_interrupt
+// feature gate is not used.
+
+macro_rules! m { ($v:vis) => {} }
+//~^ ERROR :vis fragment specifier is experimental and subject to change
+
+fn main() {
+    m!(pub);
+}