mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
Test that core::assert! is valid
This commit is contained in:
@@ -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); }
|
||||
Reference in New Issue
Block a user