summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/no-std-macros.rs
blob: ada643c7ac041448e28816e3f18ff7845491af2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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); }