diff --git a/src/test/compile-fail/issue-28433.rs b/src/test/compile-fail/issue-28433.rs index ab0708c28ae..3ca2213087d 100644 --- a/src/test/compile-fail/issue-28433.rs +++ b/src/test/compile-fail/issue-28433.rs @@ -9,7 +9,9 @@ // except according to those terms. enum bird { - pub duck, //~ ERROR: expected identifier, found keyword `pub` + pub duck, + //~^ ERROR: expected identifier, found keyword `pub` + //~^^ ERROR: expected goose }