]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/block-result/unexpected-return-on-unit.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / block-result / unexpected-return-on-unit.stderr
index 50af4734202dd0b1cfccb4ac521987b7ea65a085..170d11373ddd0d06ad2bbafd61632d43e48a9920 100644 (file)
@@ -1,14 +1,12 @@
 error[E0308]: mismatched types
   --> $DIR/unexpected-return-on-unit.rs:9:5
    |
-LL |     foo() //~ ERROR mismatched types
+LL |     foo()
    |     ^^^^^ expected (), found usize
    |
-   = note: expected type `()`
-              found type `usize`
 help: try adding a semicolon
    |
-LL |     foo(); //~ ERROR mismatched types
+LL |     foo();
    |          ^
 help: try adding a return type
    |