@@ -1821,8 +1821,11 @@ fn cargo_metadata_with_invalid_authors_field() {
18211821 r#"[ERROR] failed to parse manifest at `[..]`
18221822
18231823Caused by:
1824- invalid type: string "", expected a vector of strings or workspace
1825- in `package.authors`"# ,
1824+ TOML parse error at line 3, column 27
1825+ |
1826+ 3 | authors = ""
1827+ | ^^
1828+ invalid type: string "", expected a vector of strings or workspace"# ,
18261829 )
18271830 . run ( ) ;
18281831}
@@ -1846,8 +1849,11 @@ fn cargo_metadata_with_invalid_version_field() {
18461849 r#"[ERROR] failed to parse manifest at `[..]`
18471850
18481851Caused by:
1849- invalid type: integer `1`, expected SemVer version
1850- in `package.version`"# ,
1852+ TOML parse error at line 3, column 27
1853+ |
1854+ 3 | version = 1
1855+ | ^
1856+ invalid type: integer `1`, expected SemVer version"# ,
18511857 )
18521858 . run ( ) ;
18531859}
@@ -1871,8 +1877,11 @@ fn cargo_metadata_with_invalid_publish_field() {
18711877 r#"[ERROR] failed to parse manifest at `[..]`
18721878
18731879Caused by:
1874- invalid type: string "foo", expected a boolean, a vector of strings, or workspace
1875- in `package.publish`"# ,
1880+ TOML parse error at line 3, column 27
1881+ |
1882+ 3 | publish = "foo"
1883+ | ^^^^^
1884+ invalid type: string "foo", expected a boolean, a vector of strings, or workspace"# ,
18761885 )
18771886 . run ( ) ;
18781887}
0 commit comments