rust/tests/ui/parser/multitrait.rs
2023-01-11 09:32:08 +00:00

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() }
}