Skip to content

Commit 3cf5bc8

Browse files
authored
Rollup merge of #80069 - jyn514:core-assert, r=dtolnay
Test that `core::assert!` is valid Closes #55482. r? `@dtolnay`
2 parents 2808038 + 5afb95a commit 3cf5bc8

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)