blob: 2c6275699b479ee0a273000047aad31052e6a04a [file] [log] [blame]
// compile-flags: -Z parse-only
struct S {
y: isize
}
impl Cmp, ToString for S {
//~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,`
fn eq(&&other: S) { false }
fn to_string(&self) -> String { "hi".to_string() }
}