summaryrefslogtreecommitdiffstats
path: root/vendor/matches/tests/macro_use_one.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/matches/tests/macro_use_one.rs')
-rw-r--r--vendor/matches/tests/macro_use_one.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/vendor/matches/tests/macro_use_one.rs b/vendor/matches/tests/macro_use_one.rs
deleted file mode 100644
index a527a89ce..000000000
--- a/vendor/matches/tests/macro_use_one.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// https://github.com/SimonSapin/rust-std-candidates/issues/12
-#[macro_use(matches)] extern crate matches;
-
-#[test]
-fn matches_works() {
- let foo = Some("-12");
- assert!(matches!(foo, Some(bar) if
- matches!(bar.as_bytes()[0], b'+' | b'-') &&
- matches!(bar.as_bytes()[1], b'0'...b'9')
- ));
-}