Auto merge of #27120 - apasel422:associated-item-error, r=arielb1

Previously, these would both be labeled as methods.
This commit is contained in:
bors 2015-07-20 01:46:20 +00:00
commit ef04b07239
3 changed files with 34 additions and 9 deletions

View file

@ -8,9 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(associated_consts)]
trait A { }
impl A for isize {
const BAR: () = (); //~ ERROR const `BAR` is not a member of trait `A`
type Baz = (); //~ ERROR type `Baz` is not a member of trait `A`
fn foo(&self) { } //~ ERROR method `foo` is not a member of trait `A`
}