fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
784 B23 linesraw
1error[E0271]: type mismatch resolving `<() as Array<'a>>::Element == ()`
2  --> $DIR/issue-39970.rs:19:6
3   |
4LL |     <() as Visit>::visit();
5   |      ^^ type mismatch resolving `<() as Array<'a>>::Element == ()`
6   |
7note: expected this to be `()`
8  --> $DIR/issue-39970.rs:10:20
9   |
10LL |     type Element = &'a ();
11   |                    ^^^^^^
12note: required for `()` to implement `Visit`
13  --> $DIR/issue-39970.rs:13:6
14   |
15LL | impl Visit for () where
16   |      ^^^^^     ^^
17LL |     //(): for<'a> Array<'a, Element=&'a ()>, // No ICE
18LL |     (): for<'a> Array<'a, Element=()>, // ICE
19   |                           ---------- unsatisfied trait bound introduced here
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0271`.