mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:03:25 +03:00
4e1172ebbd
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?