]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39970.stderr
Auto merge of #96869 - sunfishcode:main, r=joshtriplett
[rust.git] / src / test / ui / issues / issue-39970.stderr
1 error[E0271]: type mismatch resolving `for<'a> <() as Array<'a>>::Element == ()`
2   --> $DIR/issue-39970.rs:19:5
3    |
4 LL |     <() as Visit>::visit();
5    |     ^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `for<'a> <() as Array<'a>>::Element == ()`
6    |
7 note: expected this to be `()`
8   --> $DIR/issue-39970.rs:10:20
9    |
10 LL |     type Element = &'a ();
11    |                    ^^^^^^
12 note: required for `()` to implement `Visit`
13   --> $DIR/issue-39970.rs:13:6
14    |
15 LL | impl Visit for () where
16    |      ^^^^^     ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.