about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorJean Lourenço <jeancarlos.bnu@gmail.com>2017-10-08 15:01:44 -0300
committerJean Lourenço <jeancarlos.bnu@gmail.com>2017-10-10 23:52:45 -0300
commitdb91b00065181137fa4a298aeee796ff10755d20 (patch)
treecab82fbbf8d702ab4d354351b9f1aed530dba146 /src/libsyntax/parse/parser.rs
parent417c73891ffd3a769e27c83b1d34916c3924ec94 (diff)
downloadrust-db91b00065181137fa4a298aeee796ff10755d20.tar.gz
rust-db91b00065181137fa4a298aeee796ff10755d20.zip
output compiler message updated
output message is shown in another 'help:' block

line with +100 columns formatted

test adjusted
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 65dabe98a06..0e691624231 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2947,6 +2947,7 @@ impl<'a> Parser<'a> {
                 {                                  //     Foo<Bar<Baz<Qux, ()>>>
                     err.help(
                         "use `::<...>` instead of `<...>` if you meant to specify type arguments");
+                    err.help("or use `(...)` if you meant to specify fn arguments");
                 }
                 err.emit();
             }