2 --> $DIR/regex.rs:16:45
4 16 | let pipe_in_wrong_position = Regex::new("|");
7 = note: `-D 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 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:40:9
64 error: regex syntax error on position 0: unclosed group
65 --> $DIR/regex.rs:44:9
70 error: regex syntax error: unrecognized escape sequence
71 --> $DIR/regex.rs:48:45
73 48 | let raw_string_error = Regex::new(r"[...//...]");
76 error: regex syntax error: unrecognized escape sequence
77 --> $DIR/regex.rs:49:46
79 49 | let raw_string_error = Regex::new(r#"[...//...]"#);
83 --> $DIR/regex.rs:53:33
85 53 | let trivial_eq = Regex::new("^foobar$");
88 = help: consider using `==` on `str`s
91 --> $DIR/regex.rs:55:48
93 55 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
96 = help: consider using `==` on `str`s
99 --> $DIR/regex.rs:57:42
101 57 | let trivial_starts_with = Regex::new("^foobar");
104 = help: consider using `str::starts_with`
107 --> $DIR/regex.rs:59:40
109 59 | let trivial_ends_with = Regex::new("foobar$");
112 = help: consider using `str::ends_with`
115 --> $DIR/regex.rs:61:39
117 61 | let trivial_contains = Regex::new("foobar");
120 = help: consider using `str::contains`
123 --> $DIR/regex.rs:63:39
125 63 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
128 = help: consider using `str::contains`
131 --> $DIR/regex.rs:65:40
133 65 | let trivial_backslash = Regex::new("a/.b");
136 = help: consider using `str::contains`
139 --> $DIR/regex.rs:68:36
141 68 | let trivial_empty = Regex::new("");
144 = help: the regex is unlikely to be useful as it is
147 --> $DIR/regex.rs:70:36
149 70 | let trivial_empty = Regex::new("^");
152 = help: the regex is unlikely to be useful as it is
155 --> $DIR/regex.rs:72:36
157 72 | let trivial_empty = Regex::new("^$");
160 = help: consider using `str::is_empty`
163 --> $DIR/regex.rs:74:44
165 74 | let binary_trivial_empty = BRegex::new("^$");
168 = help: consider using `str::is_empty`
170 error: aborting due to 23 previous errors