mirror of
https://github.com/openharmony/third_party_rust_static-assertions-rs.git
synced 2026-07-19 16:53:36 -04:00
[Tests] Add failure case for assert_impl
This commit is contained in:
@@ -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]>);
|
||||
|
||||
Reference in New Issue
Block a user