mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
233 B
Rust
14 lines
233 B
Rust
|
// 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); }
|