1 error: regex syntax error: empty alternate
2 --> $DIR/regex.rs:16:45
4 16 | let pipe_in_wrong_position = Regex::new("|");
7 = note: `-D invalid-regex` implied by `-D warnings`
9 error: regex syntax error: empty alternate
10 --> $DIR/regex.rs:17:60
12 17 | let pipe_in_wrong_position_builder = RegexBuilder::new("|");
15 error: regex syntax error: invalid character class range
16 --> $DIR/regex.rs:18:40
18 18 | let wrong_char_ranice = Regex::new("[z-a]");
21 error: regex syntax error: invalid character class range
22 --> $DIR/regex.rs:19:35
24 19 | let some_unicode = Regex::new("[é-è]");
27 error: regex syntax error on position 0: unclosed parenthesis
28 --> $DIR/regex.rs:21:33
30 21 | let some_regex = Regex::new(OPENING_PAREN);
33 error: regex syntax error: empty alternate
34 --> $DIR/regex.rs:23:53
36 23 | let binary_pipe_in_wrong_position = BRegex::new("|");
39 error: regex syntax error on position 0: unclosed parenthesis
40 --> $DIR/regex.rs:24:41
42 24 | let some_binary_regex = BRegex::new(OPENING_PAREN);
45 error: regex syntax error on position 0: unclosed parenthesis
46 --> $DIR/regex.rs:25:56
48 25 | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
51 error: regex syntax error on position 0: unclosed parenthesis
52 --> $DIR/regex.rs:40:9
57 error: regex syntax error on position 0: unclosed parenthesis
58 --> $DIR/regex.rs:44:9
64 --> $DIR/regex.rs:50:33
66 50 | let trivial_eq = Regex::new("^foobar$");
69 = note: `-D trivial-regex` implied by `-D warnings`
70 = help: consider using consider using `==` on `str`s
73 --> $DIR/regex.rs:52:48
75 52 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
78 = help: consider using consider using `==` on `str`s
81 --> $DIR/regex.rs:54:42
83 54 | let trivial_starts_with = Regex::new("^foobar");
86 = help: consider using consider using `str::starts_with`
89 --> $DIR/regex.rs:56:40
91 56 | let trivial_ends_with = Regex::new("foobar$");
94 = help: consider using consider using `str::ends_with`
97 --> $DIR/regex.rs:58:39
99 58 | let trivial_contains = Regex::new("foobar");
102 = help: consider using consider using `str::contains`
105 --> $DIR/regex.rs:60:39
107 60 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
110 = help: consider using consider using `str::contains`
113 --> $DIR/regex.rs:62:40
115 62 | let trivial_backslash = Regex::new("a//.b");
118 = help: consider using consider using `str::contains`
121 --> $DIR/regex.rs:65:36
123 65 | let trivial_empty = Regex::new("");
126 = help: consider using the regex is unlikely to be useful as it is
129 --> $DIR/regex.rs:67:36
131 67 | let trivial_empty = Regex::new("^");
134 = help: consider using the regex is unlikely to be useful as it is
137 --> $DIR/regex.rs:69:36
139 69 | let trivial_empty = Regex::new("^$");
142 = help: consider using consider using `str::is_empty`
145 --> $DIR/regex.rs:71:44
147 71 | let binary_trivial_empty = BRegex::new("^$");
150 = help: consider using consider using `str::is_empty`
152 error: aborting due to 21 previous errors