From: Ariel Ben-Yehuda Date: Wed, 5 Apr 2017 23:01:06 +0000 (+0000) Subject: Rollup merge of #40815 - estebank:issue-40006, r=GuillaumeGomez X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=cee05080219bde70125882ef32c0a882544b9f50;p=rust.git Rollup merge of #40815 - estebank:issue-40006, r=GuillaumeGomez Identify missing item category in `impl`s ```rust struct S; impl S { pub hello_method(&self) { println!("Hello"); } } fn main() { S.hello_method(); } ``` ```rust error: missing `fn` for method declaration --> file.rs:3:4 | 3 | pub hello_method(&self) { | ^ missing `fn` ``` Fix #40006. r? @pnkfelix CC @jonathandturner @GuillaumeGomez --- cee05080219bde70125882ef32c0a882544b9f50