summary refs log tree commit diff
path: root/src/test/compile-fail/multitrait.rs
blob: 9376c1185faefd84f92c3a622907edc2d02f42e0 (plain)
1
2
3
4
5
6
7
8
struct S {
 y: int
}

impl S: Cmp, ToStr { //~ ERROR: expected `{` but found `,`
  fn eq(&&other: S) { false }
  fn to_str() -> ~str { ~"hi" }
}