@@ -7,10 +7,19 @@ error[E0277]: the trait bound `str: AsRegex` is not satisfied
775 | #[validate(regex = "abc")]
88 | ^^^^^ the trait `AsRegex` is not implemented for `str`
99 |
10- = help: the following other types implement trait `AsRegex`:
11- &T
12- LazyLock<regex::regex::string::Regex>
13- regex::regex::string::Regex
10+ help: the following other types implement trait `AsRegex`
11+ --> $WORKSPACE/packages/fortifier/src/validations/regex.rs
12+ |
13+ | impl AsRegex for Regex {
14+ | ^^^^^^^^^^^^^^^^^^^^^^ `regex::regex::string::Regex`
15+ ...
16+ | impl AsRegex for LazyLock<Regex> {
17+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `LazyLock<regex::regex::string::Regex>`
18+ ...
19+ | / impl<T> AsRegex for &T
20+ | | where
21+ | | T: AsRegex,
22+ | |_______________^ `&T`
1423 = note: required for `&str` to implement `AsRegex`
1524note: required by a bound in `validate_regex`
1625 --> $WORKSPACE/packages/fortifier/src/validations/regex.rs
@@ -27,10 +36,19 @@ error[E0277]: the trait bound `&str: AsRegex` is not satisfied
27365 | #[validate(regex = "abc")]
2837 | ^^^^^ the trait `Sized` is not implemented for `str`
2938 |
30- = help: the following other types implement trait `AsRegex`:
31- &T
32- LazyLock<regex::regex::string::Regex>
33- regex::regex::string::Regex
39+ help: the following other types implement trait `AsRegex`
40+ --> $WORKSPACE/packages/fortifier/src/validations/regex.rs
41+ |
42+ | impl AsRegex for Regex {
43+ | ^^^^^^^^^^^^^^^^^^^^^^ `regex::regex::string::Regex`
44+ ...
45+ | impl AsRegex for LazyLock<Regex> {
46+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `LazyLock<regex::regex::string::Regex>`
47+ ...
48+ | / impl<T> AsRegex for &T
49+ | | where
50+ | | T: AsRegex,
51+ | |_______________^ `&T`
3452 = note: required for `&str` to implement `AsRegex`
3553note: required by a bound in `validate_regex`
3654 --> $WORKSPACE/packages/fortifier/src/validations/regex.rs
0 commit comments