error[E0061]: this function takes 2 parameters but 1 parameter was supplied --> $DIR/issue-18819.rs:26:5 | LL | fn print_x(_: &Foo, extra: &str) { | ------------------------------------------- defined here ... LL | print_x(X); | ^^^^^^^^^^ expected 2 parameters error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0061"