summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/derive_on_deprecated.rs
blob: ac771ac81d118097440239f29c261dcad60561f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// build-pass (FIXME(62277): could be check-pass?)

#![deny(deprecated)]

#[deprecated = "oh no"]
#[derive(Default)]
struct X;

#[deprecated(note="Do not use this")]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, Hash)]
pub struct Step<I> {
    _skip: Option<I>,
}

fn main() {}