]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-44153.stderr
Auto merge of #57545 - bovinebuddha:object_safe_for_dispatch, r=nikomatsakis
[rust.git] / src / test / ui / associated-types / issue-44153.stderr
1 error[E0271]: type mismatch resolving `<() as Array>::Element == &()`
2   --> $DIR/issue-44153.rs:18:5
3    |
4 LL |     fn visit() {}
5    |     ---------- required by `Visit::visit`
6 ...
7 LL |     <() as Visit>::visit();
8    |     ^^^^^^^^^^^^^^^^^^^^ expected (), found &()
9    |
10    = note: expected type `()`
11               found type `&()`
12    = note: required because of the requirements on the impl of `Visit` for `()`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0271`.