]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/if/if-without-else-result.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / if / if-without-else-result.stderr
index 7870439fee15ddb4065a95c0bc8fbf3945780cd1..b2c700d3c8febd6e96a005e46d7b480006f94e5f 100644 (file)
@@ -7,8 +7,6 @@ LL |     let a = if true { true };
    |             |         found here
    |             expected (), found bool
    |
-   = note: expected unit type `()`
-                   found type `bool`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type