Skip to content

Commit

Permalink
tests: fix expected errors for Rust 1.75 (#283)
Browse files Browse the repository at this point in the history
Rust 1.75 has a change in error messages for methods on structs.
  • Loading branch information
Fishrock123 authored Jan 10, 2024
1 parent 8ade171 commit 5dec97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0599]: no method named `validate` found for struct `Test` in the current
--> $DIR/validate_not_impl_with_args.rs:15:10
|
8 | struct Test {
| ----------- method `validate` not found for this
| ----------- method `validate` not found for this struct
...
15 | test.validate();
| ^^^^^^^^ method not found in `Test`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0599]: no method named `validate` found for struct `Nested` in the curren
| ^^^^^^^^ method not found in `Nested`
...
9 | struct Nested {
| ------------- method `validate` not found for this
| ------------- method `validate` not found for this struct
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `validate`, perhaps you need to implement it:
Expand Down

0 comments on commit 5dec97c

Please sign in to comment.