diff options
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/parenthesized-box-expr-message.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/parse-fail/parenthesized-box-expr-message.rs b/src/test/parse-fail/parenthesized-box-expr-message.rs index 4d40f86b971..09d32a71dea 100644 --- a/src/test/parse-fail/parenthesized-box-expr-message.rs +++ b/src/test/parse-fail/parenthesized-box-expr-message.rs @@ -11,6 +11,8 @@ // compile-flags: -Z parse-only fn main() { - box(1 + 1) //~ HELP perhaps you meant `box() (foo)` instead? + box (1 + 1) + //~^ HELP try using `box()` instead: + //~| SUGGESTION box() (1 + 1) ; //~ ERROR expected expression, found `;` } |
