[Tests] Add failure case for assert_impl

This commit is contained in:
Nikolai Vazquez
2017-08-13 15:48:47 -04:00
parent 9c2b158d93
commit cdcd2f337a
+3
View File
@@ -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]>);