Make stability attributes an error. #22830
This commit is contained in:
parent
f46c4e158d
commit
bb407b1e9d
3 changed files with 8 additions and 11 deletions
|
|
@ -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() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue