about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-15 17:09:54 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-16 11:49:09 +0530
commitd5c3194c5998a229e869a0c1f85e1a4a0dff5ecb (patch)
tree504c24e1490600a09feacd9015c572821caf31ee
parent00018174850d16f73e717582d864df5c7c327986 (diff)
downloadrust-d5c3194c5998a229e869a0c1f85e1a4a0dff5ecb.tar.gz
rust-d5c3194c5998a229e869a0c1f85e1a4a0dff5ecb.zip
Add cfail test for custom attribute gate
-rw-r--r--src/test/compile-fail/custom_attribute.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/compile-fail/custom_attribute.rs b/src/test/compile-fail/custom_attribute.rs
new file mode 100644
index 00000000000..193063a98cb
--- /dev/null
+++ b/src/test/compile-fail/custom_attribute.rs
@@ -0,0 +1,14 @@
+// Copyright 2014 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.
+
+#[foo] //~ ERROR The attribute `foo`
+fn main() {
+
+}
\ No newline at end of file