Skip to content

Commit

Permalink
Add a fallible alternative to emulate_macro_expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydavis519 committed Oct 31, 2018
1 parent 284952c commit 8a6b3a5
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
54 changes: 54 additions & 0 deletions examples/custom_assert/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions examples/custom_assert/tests/compile-fail/syntax_error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#![feature(proc_macro_hygiene)]

extern crate custom_assert;

use custom_assert::custom_assert;

#[test]
fn syntax_error() {
custom_assert!(2 + 2 == );
}

0 comments on commit 8a6b3a5

Please sign in to comment.