Skip to content

Commit 5afb95a

Browse files
committed
Test that core::assert! is valid
1 parent cbab347 commit 5afb95a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/ui/no-std-macros.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// compile-flags: --crate-type=lib
2+
// check-pass
3+
// issue #55482
4+
#![no_std]
5+
6+
macro_rules! foo {
7+
($e:expr) => {
8+
$crate::core::assert!($e);
9+
$crate::core::assert_eq!($e, true);
10+
};
11+
}
12+
13+
pub fn foo() { foo!(true); }

0 commit comments

Comments
 (0)