Skip to content

Commit

Permalink
Add generic test for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
tmandry committed Aug 13, 2024
1 parent c87f901 commit a5d02bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core-foundation/tests/use_macro_outside_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ declare_TCFType!(CFFooBar, CFFooBarRef);
impl_TCFType!(CFFooBar, CFFooBarRef, CFFooBarGetTypeID);
impl_CFTypeDescription!(CFFooBar);
impl_CFComparison!(CFFooBar, fake_compare);

declare_TCFType!(CFGenericFooBar<T: Clone>, CFFooBarRef);
impl_TCFType!(CFGenericFooBar<T: Clone>, CFFooBarRef, CFFooBarGetTypeID);
impl_CFTypeDescription!(CFGenericFooBar<T: Clone>);
impl_CFComparison!(CFGenericFooBar<T: Clone>, fake_compare);

0 comments on commit a5d02bb

Please sign in to comment.