Add stability attribute to E0539 error examples

This commit is contained in:
unexge 2020-05-03 00:25:45 +03:00
parent 9536567210
commit ef813ca95a

View File

@ -4,6 +4,7 @@ Erroneous code example:
```compile_fail,E0539 ```compile_fail,E0539
#![feature(staged_api)] #![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
#[rustc_deprecated(reason)] // error! #[rustc_deprecated(reason)] // error!
#[unstable(feature = "deprecated_fn", issue = "123")] #[unstable(feature = "deprecated_fn", issue = "123")]
@ -27,6 +28,7 @@ To fix these issues you need to give required key-value pairs.
``` ```
#![feature(staged_api)] #![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
#[rustc_deprecated(since = "1.39.0", reason = "reason")] // ok! #[rustc_deprecated(since = "1.39.0", reason = "reason")] // ok!
#[unstable(feature = "deprecated_fn", issue = "123")] #[unstable(feature = "deprecated_fn", issue = "123")]