Rollup merge of #33107 - sanxiyn:prev-impl-item, r=eddyb

Show previous definition of duplicate impl item

Fix #32971.
This commit is contained in:
Manish Goregaokar 2016-04-26 01:44:51 +05:30
commit 1bc30a5621
3 changed files with 20 additions and 17 deletions

View file

@ -9,9 +9,10 @@
// except according to those terms.
struct Foo;
impl Foo {
fn orange(&self){}
fn orange(&self){} //~ ERROR duplicate definitions
fn orange(&self) {} //~ NOTE previous definition of `orange` here
fn orange(&self) {} //~ ERROR duplicate definitions with name `orange`
}
fn main() {}