about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/regex.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2023-05-20 15:39:26 +0200
committerPhilipp Krones <hello@philkrones.com>2023-05-20 15:39:26 +0200
commit12cbb6ced8a848d1de68e7f0fe842217b9563ccc (patch)
treec3bbf48a283d582da6730ae6829b6bd1d8defaf1 /src/tools/clippy/tests/ui/regex.rs
parent25f084d5e007b9561d155be0b1a2e369c8e4b0ef (diff)
parent435a8ad86c7a33bd7ffb91c59039943408d3b6aa (diff)
downloadrust-12cbb6ced8a848d1de68e7f0fe842217b9563ccc.tar.gz
rust-12cbb6ced8a848d1de68e7f0fe842217b9563ccc.zip
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
Diffstat (limited to 'src/tools/clippy/tests/ui/regex.rs')
-rw-r--r--src/tools/clippy/tests/ui/regex.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/regex.rs b/src/tools/clippy/tests/ui/regex.rs
index ab8ac97a0e7..a5f79b139bc 100644
--- a/src/tools/clippy/tests/ui/regex.rs
+++ b/src/tools/clippy/tests/ui/regex.rs
@@ -34,8 +34,10 @@ fn syntax_error() {
     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
 
+    // These following three cases are considering valid since regex-1.8.0
     let raw_string_error = Regex::new(r"[...\/...]");
     let raw_string_error = Regex::new(r#"[...\/...]"#);
+    let _ = Regex::new(r"(?<hi>hi)").unwrap();
 
     let escaped_string_span = Regex::new("\\b\\c");