mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
10 lines
224 B
Rust
10 lines
224 B
Rust
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() }
|
|
}
|