]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12937 : sinistersnare/rust/method-error-message, r=huonw
authorbors <bors@rust-lang.org>
Mon, 17 Mar 2014 00:01:54 +0000 (17:01 -0700)
committerbors <bors@rust-lang.org>
Mon, 17 Mar 2014 00:01:54 +0000 (17:01 -0700)
its a common (yet easily fixable) error to just forget parens at the end of getter-like methods without any arguments.

The current error message for that case asks for an anonymous function, this patch adds a note asking for either an anonymous function, or for trailing parens.

This is my first contribution! do i need to do anything else?

1  2 
src/librustc/middle/typeck/check/mod.rs