Ui test changes for trybuild 1.0.49

This commit is contained in:
David Tolnay 2021-10-08 03:00:04 -04:00
parent 733b353394
commit 019b179cf7
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
11 changed files with 11 additions and 11 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 });
| ^

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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