Test that core::assert! is valid

This commit is contained in:
Joshua Nelson 2020-12-15 20:47:06 -05:00
parent cbab347e68
commit 5afb95a6ca

View file

@ -0,0 +1,13 @@
// compile-flags: --crate-type=lib
// check-pass
// issue #55482
#![no_std]
macro_rules! foo {
($e:expr) => {
$crate::core::assert!($e);
$crate::core::assert_eq!($e, true);
};
}
pub fn foo() { foo!(true); }