Skip to content

Commit 0822ec3

Browse files
fix: update regex failure test output (#93)
1 parent c5aa75e commit 0822ec3

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

packages/fortifier-macros-tests/tests/validations/regex/invalid_expression_fail.stderr

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ error[E0277]: the trait bound `str: AsRegex` is not satisfied
77
5 | #[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`
1524
note: 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
2736
5 | #[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`
3553
note: required by a bound in `validate_regex`
3654
--> $WORKSPACE/packages/fortifier/src/validations/regex.rs

0 commit comments

Comments
 (0)