fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
531 B16 linesraw
1error[E0271]: type mismatch resolving `for<'a> <() as Array<'a>>::Element == ()`
2  --> $DIR/issue-39970.rs:19:5
3   |
4LL |     fn visit() {}
5   |     ---------- required by `Visit::visit`
6...
7LL |     <() 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
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0271`.