fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
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}