error[E0271]: type mismatch resolving `<() as Array>::Element == &()` --> $DIR/issue-44153.rs:18:5 | LL | fn visit() {} | ---------- required by `Visit::visit` ... LL | <() as Visit>::visit(); | ^^^^^^^^^^^^^^^^^^^^ expected (), found &() | = note: expected type `()` found reference `&()` = note: required because of the requirements on the impl of `Visit` for `()` error: aborting due to previous error For more information about this error, try `rustc --explain E0271`.