diff --git a/tests/ui/regex.stderr b/tests/ui/regex.stderr index 1c244c1df12..9f1397990bb 100644 --- a/tests/ui/regex.stderr +++ b/tests/ui/regex.stderr @@ -112,7 +112,7 @@ error: trivial regex error: trivial regex --> $DIR/regex.rs:62:40 | -62 | let trivial_backslash = Regex::new("a//.b"); +62 | let trivial_backslash = Regex::new("a/.b"); | ^^^^^^^ | = help: consider using consider using `str::contains`