]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | #### Note: this error code is no longer emitted by the compiler. |
2 | ||
3 | A stability attribute was used outside of the standard library. | |
4 | ||
5 | Erroneous code example: | |
6 | ||
7 | ```compile_fail | |
8 | #[stable] // error: stability attributes may not be used outside of the | |
9 | // standard library | |
10 | fn foo() {} | |
11 | ``` | |
12 | ||
13 | It is not possible to use stability attributes outside of the standard library. | |
14 | Also, for now, it is not possible to write deprecation messages either. |