]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-39970.stderr
Remove E0308 note when primary label has all info
[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 |     fn visit() {}
5    |     ---------- required by `Visit::visit`
6 ...
7 LL |     <() as Visit>::visit();
8    |     ^^^^^^^^^^^^^^^^^^^^ expected &(), found ()
9    |
10    = note: required because of the requirements on the impl of `Visit` for `()`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0271`.