Skip to content

Commit

Permalink
fix(test): Update expected test results
Browse files Browse the repository at this point in the history
  • Loading branch information
sjackman committed Nov 8, 2023
1 parent 7d722f1 commit 4564c85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
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)
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ error[E0277]: the trait bound `Foo: MartianFileType` is not satisfied
= help: the following other types implement trait `AsMartianBlanketType`:
HashMap<K, V, H>
HashSet<K, H>
Option<T>
Vec<T>
Option<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)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Looks like you are setting #[mro_type] twice for field 'foo'
--> $DIR/test_multiple_mro_type.rs:8:5
error: Specified #[mro_type] twice for field 'foo'
--> tests/ui_martian_struct/test_multiple_mro_type.rs:8:5
|
8 | / #[mro_type = "int"]
9 | | #[mro_type = "float"] // Cannot specify twice
Expand Down

0 comments on commit 4564c85

Please sign in to comment.