]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-43162.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-43162.stderr
index c729c05ff229e2cdc3523a08593dba8d336b286f..0ed3d27c65b6e3f64a087568e0901922d9526cfc 100644 (file)
@@ -14,15 +14,12 @@ error[E0308]: mismatched types
   --> $DIR/issue-43162.rs:1:13
    |
 LL | fn foo() -> bool {
-   |    ---      ^^^^ expected bool, found ()
+   |    ---      ^^^^ expected `bool`, found `()`
    |    |
    |    implicitly returns `()` as its body has no tail or `return` expression
 LL |
 LL |     break true;
    |               - help: consider removing this semicolon
-   |
-   = note: expected type `bool`
-              found type `()`
 
 error: aborting due to 3 previous errors