]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/return/return-type.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / return / return-type.stderr
index 6eeec41b94c54e3afab400784cf62b44a5c68037..535428f1c91f76bf656fff089dae574b633b1b49 100644 (file)
@@ -2,10 +2,10 @@ error[E0308]: mismatched types
   --> $DIR/return-type.rs:10:5
    |
 LL |     foo(4 as usize)
-   |     ^^^^^^^^^^^^^^^ expected (), found struct `S`
+   |     ^^^^^^^^^^^^^^^ expected `()`, found struct `S`
    |
-   = note: expected type `()`
-              found type `S<usize>`
+   = note: expected unit type `()`
+                 found struct `S<usize>`
 help: try adding a semicolon
    |
 LL |     foo(4 as usize);