]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39970.stderr
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[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    |     ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `&()`
6    |
7 note: required because of the requirements on the impl of `Visit` for `()`
8   --> $DIR/issue-39970.rs:13:6
9    |
10 LL | impl Visit for () where
11    |      ^^^^^     ^^
12 note: required by `Visit::visit`
13   --> $DIR/issue-39970.rs:6:5
14    |
15 LL |     fn visit() {}
16    |     ^^^^^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.