2012-11-29 18:37:33 -08:00
|
|
|
trait A { }
|
|
|
|
|
2015-01-08 21:54:35 +11:00
|
|
|
impl A for isize {
|
2015-07-18 19:56:15 -04:00
|
|
|
const BAR: () = (); //~ ERROR const `BAR` is not a member of trait `A`
|
|
|
|
type Baz = (); //~ ERROR type `Baz` is not a member of trait `A`
|
2013-03-12 19:32:14 -07:00
|
|
|
fn foo(&self) { } //~ ERROR method `foo` is not a member of trait `A`
|
2012-11-29 18:37:33 -08:00
|
|
|
}
|
|
|
|
|
2013-02-14 11:47:00 -08:00
|
|
|
fn main() { }
|