Rollup merge of #80069 - jyn514:core-assert, r=dtolnay
Test that `core::assert!` is valid Closes https://github.com/rust-lang/rust/issues/55482. r? `@dtolnay`
This commit is contained in:
commit
3cf5bc8b37
13
src/test/ui/no-std-macros.rs
Normal file
13
src/test/ui/no-std-macros.rs
Normal file
@ -0,0 +1,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); }
|
Loading…
x
Reference in New Issue
Block a user