]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/closures/issue-84128.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / closures / issue-84128.stderr
index 70d9273ddf7ceb2af8dbd68ac158757b3d1ee232..09c44d261af0c449f373aeef4850a883f9d5761c 100644 (file)
@@ -2,13 +2,20 @@ error[E0308]: mismatched types
   --> $DIR/issue-84128.rs:13:13
    |
 LL |         Foo(())
-   |             ^^ expected integer, found `()`
+   |         --- ^^ expected integer, found `()`
+   |         |
+   |         arguments to this struct are incorrect
    |
 note: return type inferred to be `{integer}` here
   --> $DIR/issue-84128.rs:10:20
    |
 LL |             return Foo(0);
    |                    ^^^^^^
+note: tuple struct defined here
+  --> $DIR/issue-84128.rs:5:8
+   |
+LL | struct Foo<T>(T);
+   |        ^^^
 
 error: aborting due to previous error