Skip to content

Commit ef813ca

Browse files
committed
Add stability attribute to E0539 error examples
1 parent 9536567 commit ef813ca

File tree

1 file changed

+2
-0
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-0
lines changed

src/librustc_error_codes/error_codes/E0539.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Erroneous code example:
44

55
```compile_fail,E0539
66
#![feature(staged_api)]
7+
#![stable(since = "1.0.0", feature = "test")]
78
89
#[rustc_deprecated(reason)] // error!
910
#[unstable(feature = "deprecated_fn", issue = "123")]
@@ -27,6 +28,7 @@ To fix these issues you need to give required key-value pairs.
2728

2829
```
2930
#![feature(staged_api)]
31+
#![stable(since = "1.0.0", feature = "test")]
3032
3133
#[rustc_deprecated(since = "1.39.0", reason = "reason")] // ok!
3234
#[unstable(feature = "deprecated_fn", issue = "123")]

0 commit comments

Comments
 (0)