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