]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/if/if-without-else-as-fn-expr.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / if / if-without-else-as-fn-expr.stderr
index a62a2cc1522a7ffbd2a323b4b6067a5def1cb72f..472c85d96fbd7abbd47a11292976ac497355857a 100644 (file)
@@ -8,8 +8,6 @@ LL | |         return 3;
 LL | |     }
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
@@ -24,8 +22,6 @@ LL | |         return 3;
 LL | |     };
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
@@ -39,8 +35,6 @@ LL | |         3
 LL | |     }
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
@@ -54,8 +48,6 @@ LL | |         return 3;
 LL | |     }
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
@@ -70,8 +62,6 @@ LL | |         return 3;
 LL | |     };
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
@@ -85,8 +75,6 @@ LL | |         3
 LL | |     }
    | |_____^ expected usize, found ()
    |
-   = note:   expected type `usize`
-           found unit type `()`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type