Skip to content

Commit

Permalink
Test that core::assert! is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Dec 16, 2020
1 parent cbab347 commit 5afb95a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/ui/no-std-macros.rs
Original file line number Diff line number Diff line change
@@ -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); }

0 comments on commit 5afb95a

Please sign in to comment.