#[cfg_attr(feature = "nightly", doc = "```ignore")]
#[cfg_attr(not(feature = "nightly"), doc = "```")]
#[cfg_attr(feature = "nightly", doc = "```")]
#[cfg_attr(not(feature = "nightly"), doc = "```ignore")]
#[macro_export(local_inner_macros)]
macro_rules! assert_impl {
($($xs:tt)+) => { _assert_impl!($($xs)+); };
}
#[doc(hidden)]
#[cfg(feature = "nightly")]
#[macro_export(local_inner_macros)]
macro_rules! _assert_impl {
($x:ty, $($t:path),+ $(,)*) => {
const _: fn() -> () = || {
fn assert_impl<T>() where T: ?Sized $(+ $t)+ {}
assert_impl::<$x>();
};
};
}
#[doc(hidden)]
#[cfg(not(feature = "nightly"))]
#[macro_export(local_inner_macros)]
macro_rules! _assert_impl {
($x:ty, $($t:path),+ $(,)*) => {
{
fn assert_impl<T>() where T: ?Sized $(+ $t)+ {}
assert_impl::<$x>();
}
};
($label:ident; $($xs:tt)+) => {
#[allow(dead_code, non_snake_case)]
fn $label() { assert_impl!($($xs)+); }
};
}