Test that core::assert! is valid
This commit is contained in:
parent
cbab347e68
commit
5afb95a6ca
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue