mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +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() }
|
|
}
|