diff options
author | Kartikaya Gupta <kgupta@mozilla.com> | 2016-06-15 00:01:34 +0100 |
---|---|---|
committer | Kartikaya Gupta <kgupta@mozilla.com> | 2016-06-15 00:01:34 +0100 |
commit | 128056deb6d78f02b1638b221d73897b976668df (patch) | |
tree | d1481315b1cad30e587cfed1f723b47ccf17cc67 /src/lib.rs | |
parent | cd8c86fcaf87b71c9dff720074e380394d9b5d40 (diff) |
Use the stringify macro to print out the mattern in assert_match
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)), } } } |