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