Skip to content

Commit

Permalink
Rollup merge of #80069 - jyn514:core-assert, r=dtolnay
Browse files Browse the repository at this point in the history
Test that `core::assert!` is valid

Closes #55482.

r? `@dtolnay`
  • Loading branch information
JohnTitor authored Dec 17, 2020
2 parents 2808038 + 5afb95a commit 3cf5bc8
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 3cf5bc8

Please sign in to comment.