Use where clause in assert_impl

This commit is contained in:
Nikolai Vazquez
2017-12-11 14:27:08 -05:00
parent 6798241414
commit 7ac196a7df
+1 -1
View File
@@ -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>();
}
};