Skip to content

Commit

Permalink
test: extend derive_on_deprecated to include more derivations
Browse files Browse the repository at this point in the history
  • Loading branch information
da-x committed Oct 11, 2019
1 parent a32aec0 commit e285175
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/deprecation/derive_on_deprecated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
#[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() {}

0 comments on commit e285175

Please sign in to comment.