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
63 error: regex syntax error: unrecognized escape sequence
64 --> $DIR/regex.rs:48:45
66 48 | let raw_string_error = Regex::new(r"[...//...]");
69 error: regex syntax error: unrecognized escape sequence
70 --> $DIR/regex.rs:49:46
72 49 | let raw_string_error = Regex::new(r#"[...//...]"#);
76 --> $DIR/regex.rs:53:33
78 53 | let trivial_eq = Regex::new("^foobar$");
81 = note: `-D trivial-regex` implied by `-D warnings`
82 = help: consider using consider using `==` on `str`s
85 --> $DIR/regex.rs:55:48
87 55 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
90 = help: consider using consider using `==` on `str`s
93 --> $DIR/regex.rs:57:42
95 57 | let trivial_starts_with = Regex::new("^foobar");
98 = help: consider using consider using `str::starts_with`
101 --> $DIR/regex.rs:59:40
103 59 | let trivial_ends_with = Regex::new("foobar$");
106 = help: consider using consider using `str::ends_with`
109 --> $DIR/regex.rs:61:39
111 61 | let trivial_contains = Regex::new("foobar");
114 = help: consider using consider using `str::contains`
117 --> $DIR/regex.rs:63:39
119 63 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
122 = help: consider using consider using `str::contains`
125 --> $DIR/regex.rs:65:40
127 65 | let trivial_backslash = Regex::new("a/.b");
130 = help: consider using consider using `str::contains`
133 --> $DIR/regex.rs:68:36
135 68 | let trivial_empty = Regex::new("");
138 = help: consider using the regex is unlikely to be useful as it is
141 --> $DIR/regex.rs:70:36
143 70 | let trivial_empty = Regex::new("^");
146 = help: consider using the regex is unlikely to be useful as it is
149 --> $DIR/regex.rs:72:36
151 72 | let trivial_empty = Regex::new("^$");
154 = help: consider using consider using `str::is_empty`
157 --> $DIR/regex.rs:74:44
159 74 | let binary_trivial_empty = BRegex::new("^$");
162 = help: consider using consider using `str::is_empty`
164 error: aborting due to 23 previous errors