1 // aux-build:test-macros.rs
3 // compile-flags: -Z span-debug
5 #![no_std] // Don't load unnecessary hygiene information from std
8 extern crate test_macros;
9 use test_macros::{print_bang, print_bang_consume};
11 macro_rules! test_matchers {
12 ($expr:expr, $block:block, $stmt:stmt, $ty:ty, $ident:ident, $lifetime:lifetime,
13 $meta:meta, $path:path, $vis:vis, $tt:tt, $lit:literal) => {
14 print_bang_consume!($expr, $block, $stmt, $ty, $ident,
15 $lifetime, $meta, $path, $vis, $tt, $lit)
19 macro_rules! use_expr {
25 macro_rules! use_pat {
36 drop(use_expr!(self));
52 fn with_pat(use_pat!((a, b)): (u32, u32)) {