-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): Update expected test results
- Loading branch information
Showing
3 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
24 changes: 8 additions & 16 deletions
24
martian-derive/tests/ui_martian_struct/test_invalid_mro_type_val.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
error: "The usage of mro_type should be of form #[mro_type="type"] or #[mro_type="type[]"], where type can be one of: int, float, string, bool, map, path" | ||
--> tests/ui_martian_struct/test_invalid_mro_type_val.rs:8:5 | ||
| | ||
8 | / #[mro_type=int] // Should be "int" | ||
9 | | foo: Foo, | ||
| |____________^ | ||
|
||
error: unexpected expression: `int` | ||
--> $DIR/test_invalid_mro_type_val.rs:8:16 | ||
--> tests/ui_martian_struct/test_invalid_mro_type_val.rs:8:16 | ||
| | ||
8 | #[mro_type=int] // Should be "int" | ||
| ^^^ | ||
|
||
error[E0277]: the trait bound `Foo: MartianFileType` is not satisfied | ||
--> $DIR/test_invalid_mro_type_val.rs:5:10 | ||
| | ||
5 | #[derive(MartianStruct)] | ||
| ^^^^^^^^^^^^^ the trait `MartianFileType` is not implemented for `Foo` | ||
| | ||
= help: the following other types implement trait `AsMartianBlanketType`: | ||
HashMap<K, V, H> | ||
HashSet<K, H> | ||
Option<T> | ||
Vec<T> | ||
= note: required for `Foo` to implement `AsMartianPrimaryType` | ||
= note: required for `Foo` to implement `AsMartianBlanketType` | ||
= note: this error originates in the derive macro `MartianStruct` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
martian-derive/tests/ui_martian_struct/test_multiple_mro_type.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters