]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-44153.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[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 |     <() as Visit>::visit();
5    |     ^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<() as Array>::Element == &()`
6    |
7 note: expected this to be `&()`
8   --> $DIR/issue-44153.rs:10:20
9    |
10 LL |     type Element = ();
11    |                    ^^
12 note: required because of the requirements on the impl of `Visit` for `()`
13   --> $DIR/issue-44153.rs:13:10
14    |
15 LL | impl<'a> Visit for () where
16    |          ^^^^^     ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.