fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
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}