summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/multitrait.rs
blob: f9b4b37acc0dd1240386eefe977decc19593d121 (plain)
1
2
3
4
5
6
7
8
9
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() }
}