mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Ui test changes for trybuild 1.0.49
This commit is contained in:
parent
733b353394
commit
019b179cf7
@ -25,7 +25,7 @@ rustversion = "1.0"
|
||||
serde_bytes = "0.11"
|
||||
serde_derive = "1.0"
|
||||
serde_stacker = "0.1"
|
||||
trybuild = { version = "1.0.19", features = ["diff"] }
|
||||
trybuild = { version = "1.0.49", features = ["diff"] }
|
||||
|
||||
[workspace]
|
||||
members = ["tests/crate"]
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/tests/ui/missing_colon.rs:4:5
|
||||
--> tests/ui/missing_colon.rs:4:5
|
||||
|
|
||||
4 | json!({ "a" });
|
||||
| ^^^^^^^^^^^^^^^ missing tokens in macro arguments
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `"2"`
|
||||
--> $DIR/tests/ui/missing_comma.rs:4:21
|
||||
--> tests/ui/missing_comma.rs:4:21
|
||||
|
|
||||
4 | json!({ "1": "" "2": "" });
|
||||
| -^^^ no rules expected this token in macro call
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/tests/ui/missing_value.rs:4:5
|
||||
--> tests/ui/missing_value.rs:4:5
|
||||
|
|
||||
4 | json!({ "a" : });
|
||||
| ^^^^^^^^^^^^^^^^^ missing tokens in macro arguments
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0425]: cannot find value `x` in this scope
|
||||
--> $DIR/tests/ui/not_found.rs:4:19
|
||||
--> tests/ui/not_found.rs:4:19
|
||||
|
|
||||
4 | json!({ "a" : x });
|
||||
| ^ not found in this scope
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `~`
|
||||
--> $DIR/tests/ui/parse_expr.rs:4:19
|
||||
--> tests/ui/parse_expr.rs:4:19
|
||||
|
|
||||
4 | json!({ "a" : ~ });
|
||||
| ^ no rules expected this token in macro call
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0609]: no field `s` on type `&'static str`
|
||||
--> $DIR/tests/ui/parse_key.rs:4:16
|
||||
--> tests/ui/parse_key.rs:4:16
|
||||
|
|
||||
4 | json!({ "".s : true });
|
||||
| ^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `=>`
|
||||
--> $DIR/tests/ui/unexpected_after_array_element.rs:4:18
|
||||
--> tests/ui/unexpected_after_array_element.rs:4:18
|
||||
|
|
||||
4 | json!([ true => ]);
|
||||
| ^^ no rules expected this token in macro call
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `=>`
|
||||
--> $DIR/tests/ui/unexpected_after_map_entry.rs:4:23
|
||||
--> tests/ui/unexpected_after_map_entry.rs:4:23
|
||||
|
|
||||
4 | json!({ "k": true => });
|
||||
| ^^ no rules expected this token in macro call
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `:`
|
||||
--> $DIR/tests/ui/unexpected_colon.rs:4:13
|
||||
--> tests/ui/unexpected_colon.rs:4:13
|
||||
|
|
||||
4 | json!({ : true });
|
||||
| ^ no rules expected this token in macro call
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `,`
|
||||
--> $DIR/tests/ui/unexpected_comma.rs:4:17
|
||||
--> tests/ui/unexpected_comma.rs:4:17
|
||||
|
|
||||
4 | json!({ "a" , "b": true });
|
||||
| ^ no rules expected this token in macro call
|
||||
|
Loading…
x
Reference in New Issue
Block a user