2 --> $DIR/regex.rs:16:45
4 16 | let pipe_in_wrong_position = Regex::new("|");
7 = note: `-D clippy::trivial-regex` implied by `-D warnings`
8 = help: the regex is unlikely to be useful as it is
11 --> $DIR/regex.rs:17:60
13 17 | let pipe_in_wrong_position_builder = RegexBuilder::new("|");
16 = help: the regex is unlikely to be useful as it is
18 error: regex syntax error: invalid character class range, the start must be <= the end
19 --> $DIR/regex.rs:18:42
21 18 | let wrong_char_ranice = Regex::new("[z-a]");
24 = note: `-D clippy::invalid-regex` implied by `-D warnings`
26 error: regex syntax error: invalid character class range, the start must be <= the end
27 --> $DIR/regex.rs:19:37
29 19 | let some_unicode = Regex::new("[é-è]");
32 error: regex syntax error on position 0: unclosed group
33 --> $DIR/regex.rs:21:33
35 21 | let some_regex = Regex::new(OPENING_PAREN);
39 --> $DIR/regex.rs:23:53
41 23 | let binary_pipe_in_wrong_position = BRegex::new("|");
44 = help: the regex is unlikely to be useful as it is
46 error: regex syntax error on position 0: unclosed group
47 --> $DIR/regex.rs:24:41
49 24 | let some_binary_regex = BRegex::new(OPENING_PAREN);
52 error: regex syntax error on position 0: unclosed group
53 --> $DIR/regex.rs:25:56
55 25 | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
58 error: regex syntax error on position 0: unclosed group
59 --> $DIR/regex.rs:41:9
64 error: regex syntax error on position 0: unclosed group
65 --> $DIR/regex.rs:45:9
70 error: regex syntax error: unrecognized escape sequence
71 --> $DIR/regex.rs:49:45
73 49 | let raw_string_error = Regex::new(r"[...//...]");
76 error: regex syntax error: unrecognized escape sequence
77 --> $DIR/regex.rs:50:46
79 50 | let raw_string_error = Regex::new(r#"[...//...]"#);
83 --> $DIR/regex.rs:54:33
85 54 | let trivial_eq = Regex::new("^foobar$");
88 = help: consider using `==` on `str`s
91 --> $DIR/regex.rs:56:48
93 56 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
96 = help: consider using `==` on `str`s
99 --> $DIR/regex.rs:58:42
101 58 | let trivial_starts_with = Regex::new("^foobar");
104 = help: consider using `str::starts_with`
107 --> $DIR/regex.rs:60:40
109 60 | let trivial_ends_with = Regex::new("foobar$");
112 = help: consider using `str::ends_with`
115 --> $DIR/regex.rs:62:39
117 62 | let trivial_contains = Regex::new("foobar");
120 = help: consider using `str::contains`
123 --> $DIR/regex.rs:64:39
125 64 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
128 = help: consider using `str::contains`
131 --> $DIR/regex.rs:66:40
133 66 | let trivial_backslash = Regex::new("a/.b");
136 = help: consider using `str::contains`
139 --> $DIR/regex.rs:69:36
141 69 | let trivial_empty = Regex::new("");
144 = help: the regex is unlikely to be useful as it is
147 --> $DIR/regex.rs:71:36
149 71 | let trivial_empty = Regex::new("^");
152 = help: the regex is unlikely to be useful as it is
155 --> $DIR/regex.rs:73:36
157 73 | let trivial_empty = Regex::new("^$");
160 = help: consider using `str::is_empty`
163 --> $DIR/regex.rs:75:44
165 75 | let binary_trivial_empty = BRegex::new("^$");
168 = help: consider using `str::is_empty`
170 error: aborting due to 23 previous errors