From cdcd2f337a5be43b59638cc7ded1b26e05abc94c Mon Sep 17 00:00:00 2001 From: Nikolai Vazquez Date: Sun, 13 Aug 2017 15:48:47 -0400 Subject: [PATCH] [Tests] Add failure case for assert_impl --- tests/trait_impl.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/trait_impl.rs b/tests/trait_impl.rs index 6e1a0dc..aa63896 100644 --- a/tests/trait_impl.rs +++ b/tests/trait_impl.rs @@ -5,6 +5,9 @@ extern crate static_assertions; assert_impl!(byte; u8, Send, Sync); +#[cfg(feature = "failure")] +assert_impl!(ptr; *const u8, Send, Sync); + #[test] fn str_impl() { assert_impl!(str, Send, Sync, AsRef<[u8]>);