mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
12 lines
289 B
Rust
12 lines
289 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy, regex_macros)]
|
|
|
|
#![allow(unused)]
|
|
#![deny(invalid_regex, trivial_regex, regex_macro)]
|
|
|
|
extern crate regex;
|
|
|
|
fn main() {
|
|
let some_regex = regex!("for real!"); //~ERROR `regex!(_)`
|
|
let other_regex = regex!("[a-z]_[A-Z]"); //~ERROR `regex!(_)`
|
|
}
|