rustc_resolve: don't handle impl items as if they were modules.
This commit is contained in:
parent
6700166442
commit
06f362aeb3
24 changed files with 157 additions and 385 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue