]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0497.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0497.md
CommitLineData
60c5eb7d
XL
1#### Note: this error code is no longer emitted by the compiler.
2
3A stability attribute was used outside of the standard library.
4
5Erroneous code example:
6
7```compile_fail
8#[stable] // error: stability attributes may not be used outside of the
9 // standard library
10fn foo() {}
11```
12
13It is not possible to use stability attributes outside of the standard library.
14Also, for now, it is not possible to write deprecation messages either.