]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/derive_on_deprecated.rs
Cache expansion hash.
[rust.git] / src / test / ui / deprecation / derive_on_deprecated.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 #![deny(deprecated)]
4
5 #[deprecated = "oh no"]
6 #[derive(Default)]
7 struct X;
8
9 #[deprecated(note="Do not use this")]
10 #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, Hash)]
11 pub struct Step<I> {
12     _skip: Option<I>,
13 }
14
15 fn main() {}