Assert tokens are empty after reaching error

This commit is contained in:
David Tolnay
2016-06-28 22:23:38 -07:00
parent 6d64104375
commit 093201abfb
4 changed files with 7 additions and 12 deletions
-3
View File
@@ -342,9 +342,6 @@ fn test_ignore_unknown() {
Token::StructSep,
Token::Str("whoops"),
Token::I32(2),
Token::StructEnd,
],
Error::UnknownFieldError("whoops".to_owned())
);