fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
474 B14 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: required because of the requirements on the impl of `Visit` for `()`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0271`.