fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
210 B20 linesraw
1// run-rustfix
2
3trait Foo {}
4
5trait Bar {
6    fn hello(&self) {}
7}
8
9struct S;
10
11impl Foo for S {}
12impl Bar for S {}
13
14fn test(foo: impl Foo + Bar) {
15    foo.hello(); //~ ERROR E0599
16}
17
18fn main() {
19    test(S);
20}