| ---------- required by `Visit::visit`
...
LL | <() as Visit>::visit();
- | ^^^^^^^^^^^^^^^^^^^^ expected &(), found ()
+ | ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `&()`
|
- = note: expected type `&()`
- found type `()`
- = note: required because of the requirements on the impl of `Visit` for `()`
+note: required because of the requirements on the impl of `Visit` for `()`
+ --> $DIR/issue-39970.rs:13:6
+ |
+LL | impl Visit for () where
+ | ^^^^^ ^^
error: aborting due to previous error