]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0497.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0497.md
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.