]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-39970.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-39970.stderr
index 2a0693a581c319e9f85706e8387e66a075367c7f..f609e47e818d493bfb9447be009384952c30f312 100644 (file)
@@ -1,9 +1,6 @@
 error[E0271]: type mismatch resolving `for<'a> <() as Array<'a>>::Element == ()`
   --> $DIR/issue-39970.rs:19:5
    |
-LL |     fn visit() {}
-   |     ---------- required by `Visit::visit`
-...
 LL |     <() as Visit>::visit();
    |     ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `&()`
    |
@@ -12,6 +9,11 @@ note: required because of the requirements on the impl of `Visit` for `()`
    |
 LL | impl Visit for () where
    |      ^^^^^     ^^
+note: required by `Visit::visit`
+  --> $DIR/issue-39970.rs:6:5
+   |
+LL |     fn visit() {}
+   |     ^^^^^^^^^^
 
 error: aborting due to previous error