mirror of
https://github.com/openharmony/third_party_rust_static-assertions-rs.git
synced 2026-07-19 16:53:36 -04:00
Use where clause in assert_impl
This commit is contained in:
+1
-1
@@ -457,7 +457,7 @@ macro_rules! assert_fields {
|
||||
macro_rules! assert_impl {
|
||||
($x:ty, $($t:path),+ $(,)*) => {
|
||||
{
|
||||
fn assert_impl<T: ?Sized $(+ $t)+>() {}
|
||||
fn assert_impl<T>() where T: ?Sized $(+ $t)+ {}
|
||||
assert_impl::<$x>();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user