rust/tests/ui/deprecation/derive_on_deprecated_forbidden.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
143 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
#![forbid(deprecated)]
#[deprecated = "oh no"]
#[derive(Default)]
struct X;
fn main() {}