]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/multitrait.rs
Auto merge of #57129 - RalfJung:check-bounds, r=oli-obk
[rust.git] / src / test / ui / parser / multitrait.rs
1 // compile-flags: -Z parse-only
2
3 struct S {
4  y: isize
5 }
6
7 impl Cmp, ToString for S {
8 //~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,`
9   fn eq(&&other: S) { false }
10   fn to_string(&self) -> String { "hi".to_string() }
11 }