blob: 8ef71087958ca5b2988b61456354d654d0fd82b2 [file] [log] [blame]
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: 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`.