Auto merge of #27120 - apasel422:associated-item-error, r=arielb1
Previously, these would both be labeled as methods.
This commit is contained in:
commit
ef04b07239
3 changed files with 34 additions and 9 deletions
|
|
@ -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`
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue