]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/while-type-error.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / while-type-error.stderr
index 15169673fe925055a8c32901f3e5b17f2aa5e85d..529cbff0563bd63114263a6758a1b37ce3898ad8 100644 (file)
@@ -2,10 +2,10 @@ error[E0308]: mismatched types
   --> $DIR/while-type-error.rs:3:19
    |
 LL | fn main() { while main { } }
-   |                   ^^^^ expected bool, found fn item
+   |                   ^^^^ expected `bool`, found fn item
    |
    = note: expected type `bool`
-              found type `fn() {main}`
+           found fn item `fn() {main}`
 
 error: aborting due to previous error