Test the new errors on conflicting enum tags

This commit is contained in:
David Tolnay
2018-03-08 09:31:25 -08:00
parent f4b78e202a
commit f288a41768
3 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ fn check_adjacent_tag_conflict(cx: &Ctxt, cont: &Container) {
if type_tag == content_tag {
let message = format!(
"Enum tags `{}` for type and content conflict with each other",
"enum tags `{}` for type and content conflict with each other",
type_tag
);
cx.error(message);