error: `#[deprecated]` cannot be used in staged api, use `#[rustc_deprecated]` instead | |
--> $DIR/deprecation-in-staged-api.rs:18:1 | |
| | |
LL | fn main() { } //~ERROR `#[deprecated]` cannot be used in staged api | |
| ^^^^^^^^^^^^^ | |
error: aborting due to previous error | |