trait Foo { fn dummy(&self) { } } fn a(_x: Box) { } fn c(x: Box) { a(x); } fn d(x: Box) { a(x); //~ ERROR mismatched types [E0308] } fn main() { }