]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0734.md
Rollup merge of #96858 - notriddle:notriddle/cleanup-search-js, r=GuillaumeGomez
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0734.md
1 A stability attribute has been used outside of the standard library.
2
3 Erroneous code example:
4
5 ```compile_fail,E0734
6 #[stable(feature = "a", since = "b")] // invalid
7 #[unstable(feature = "b", issue = "none")] // invalid
8 fn foo(){}
9 ```
10
11 These attributes are meant to only be used by the standard library and are
12 rejected in your own crates.