about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-04-20 17:00:35 -0700
committerBrian Anderson <banderson@mozilla.com>2015-04-20 17:33:31 -0700
commitbb407b1e9db575fc04f59addcb9ba04076d8206b (patch)
tree6e9e86c1c62ce206ddc05b0de2b7eeddb371d240 /src/test
parentf46c4e158d395cf6e186bf6afdf1705c12071cbe (diff)
downloadrust-bb407b1e9db575fc04f59addcb9ba04076d8206b.tar.gz
rust-bb407b1e9db575fc04f59addcb9ba04076d8206b.zip
Make stability attributes an error. #22830
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/stability-attribute-non-staged.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/test/compile-fail/stability-attribute-non-staged.rs b/src/test/compile-fail/stability-attribute-non-staged.rs
index db16e7c0138..b0efdfd1818 100644
--- a/src/test/compile-fail/stability-attribute-non-staged.rs
+++ b/src/test/compile-fail/stability-attribute-non-staged.rs
@@ -8,11 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// These two generate an error to satisfy the compile-fail test
-#![deny(warnings)]
-#![feature(blah)] //~ ERROR
-
-#[unstable] //~ WARNING: stability attributes are deprecated
-#[stable] //~ WARNING: stability attributes are deprecated
-#[deprecated] //~ WARNING: stability attributes are deprecated
+#[unstable] //~ ERROR: stability attributes may not be used
+#[stable] //~ ERROR: stability attributes may not be used
+#[deprecated] //~ ERROR: stability attributes may not be used
 fn main() { }