Make stability attributes an error. #22830

This commit is contained in:
Brian Anderson 2015-04-20 17:00:35 -07:00
parent f46c4e158d
commit bb407b1e9d
3 changed files with 8 additions and 11 deletions

View file

@ -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() { }