rust/tests/ui/macros/no-std-macros.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
233 B
Rust
Raw Normal View History

2020-12-15 19:47:06 -06:00
// 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); }