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