1
Fork 0

rustc_resolve: don't handle impl items as if they were modules.

This commit is contained in:
Eduard Burtescu 2015-02-20 08:17:05 +02:00
parent 6700166442
commit 06f362aeb3
24 changed files with 157 additions and 385 deletions

View file

@ -11,7 +11,7 @@
struct Foo;
impl Foo {
fn orange(&self){}
fn orange(&self){} //~ ERROR error: duplicate definition of value `orange`
fn orange(&self){} //~ ERROR error: duplicate method in trait impl
}
fn main() {}