1 error[E0271]: type mismatch resolving `for<'a> <() as Array<'a>>::Element == ()`
2 --> $DIR/issue-39970.rs:29:5
4 LL | <() as Visit>::visit();
5 | ^^^^^^^^^^^^^^^^^^^^ expected &(), found ()
7 = note: expected type `&()`
9 = note: required because of the requirements on the impl of `Visit` for `()`
10 note: required by `Visit::visit`
11 --> $DIR/issue-39970.rs:16:5
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0271`.