]> git.lizzy.rs Git - rust.git/blob - tests/mut_mut_macro.rs
now the method lookup actually works (and I understand why! :smile:), reduces unneces...
[rust.git] / tests / mut_mut_macro.rs
1 #![feature(plugin)]
2 #![plugin(clippy, regex_macros)]
3
4 extern crate regex;
5
6 #[test]
7 #[deny(mut_mut)]
8 fn test_regex() {
9         let pattern = regex!(r"^(?P<level>[#]+)\s(?P<title>.+)$");
10         assert!(pattern.is_match("# headline"));
11 }