diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-02-10 14:01:19 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-02-10 14:01:19 +0100 |
| commit | 0be5779e7d93f9173f79a4d291386622002338db (patch) | |
| tree | 198c626aa6a3d4657e343ef7c715036cce0b6739 /src/tools/clippy/tests/ui/regex.rs | |
| parent | 9b8dbd558c1c4b25c55d987e22baba312ae980ad (diff) | |
| parent | 0f7558148c22e53cd4608773b56cdfa50dcdeac3 (diff) | |
| download | rust-0be5779e7d93f9173f79a4d291386622002338db.tar.gz rust-0be5779e7d93f9173f79a4d291386622002338db.zip | |
Merge commit '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyup
Diffstat (limited to 'src/tools/clippy/tests/ui/regex.rs')
| -rw-r--r-- | src/tools/clippy/tests/ui/regex.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/regex.rs b/src/tools/clippy/tests/ui/regex.rs index f0e1a8128d7..ab8ac97a0e7 100644 --- a/src/tools/clippy/tests/ui/regex.rs +++ b/src/tools/clippy/tests/ui/regex.rs @@ -36,6 +36,10 @@ fn syntax_error() { let raw_string_error = Regex::new(r"[...\/...]"); let raw_string_error = Regex::new(r#"[...\/...]"#); + + let escaped_string_span = Regex::new("\\b\\c"); + + let aux_span = Regex::new("(?ixi)"); } fn trivial_regex() { |
