2012-09-07 15:11:26 -07:00
|
|
|
struct S {
|
2015-01-08 21:54:35 +11:00
|
|
|
y: isize
|
2012-09-07 15:11:26 -07:00
|
|
|
}
|
|
|
|
|
|
2015-01-16 16:04:28 +13:00
|
|
|
impl Cmp, ToString for S {
|
2015-08-05 14:18:29 -07:00
|
|
|
//~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,`
|
2012-09-07 15:11:26 -07:00
|
|
|
fn eq(&&other: S) { false }
|
2014-06-21 03:39:03 -07:00
|
|
|
fn to_string(&self) -> String { "hi".to_string() }
|
2013-02-03 20:47:26 -08:00
|
|
|
}
|