summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorKartikaya Gupta <kgupta@mozilla.com>2016-06-15 00:01:34 +0100
committerKartikaya Gupta <kgupta@mozilla.com>2016-06-15 00:01:34 +0100
commit128056deb6d78f02b1638b221d73897b976668df (patch)
treed1481315b1cad30e587cfed1f723b47ccf17cc67 /src/lib.rs
parentcd8c86fcaf87b71c9dff720074e380394d9b5d40 (diff)
Use the stringify macro to print out the mattern in assert_match
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d0ba1de..ba06cb2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -472,7 +472,7 @@ mod tests {
( $x:expr, $p:pat ) => {
match $x {
$p => (),
- _ => panic!("Expression {} does not match given pattern", $x),
+ _ => panic!("Expression {} does not match pattern {}", $x, stringify!($p)),
}
}
}