]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/implicit_return.stderr
Auto merge of #3587 - flip1995:ui-testing, r=phansch
[rust.git] / tests / ui / implicit_return.stderr
index 26474aab4b8f7e3dc03205046d4baf50995e66bf..4c62a7d65c6dea924f8ed2a6238a0ad1a670aaa4 100644 (file)
@@ -1,7 +1,7 @@
 error: missing return statement
   --> $DIR/implicit_return.rs:17:5
    |
-17 |     true
+LL |     true
    |     ^^^^ help: add `return` as shown: `return true`
    |
    = note: `-D clippy::implicit-return` implied by `-D warnings`
@@ -9,44 +9,56 @@ error: missing return statement
 error: missing return statement
   --> $DIR/implicit_return.rs:23:9
    |
-23 |         true
+LL |         true
    |         ^^^^ help: add `return` as shown: `return true`
 
 error: missing return statement
   --> $DIR/implicit_return.rs:25:9
    |
-25 |         false
+LL |         false
    |         ^^^^^ help: add `return` as shown: `return false`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:32:17
+  --> $DIR/implicit_return.rs:33:17
    |
-32 |         true => false,
+LL |         true => false,
    |                 ^^^^^ help: add `return` as shown: `return false`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:33:18
+  --> $DIR/implicit_return.rs:34:20
    |
-33 |         false => true,
-   |                  ^^^^ help: add `return` as shown: `return true`
+LL |         false => { true },
+   |                    ^^^^ help: add `return` as shown: `return true`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:40:9
+  --> $DIR/implicit_return.rs:41:9
    |
-40 |         break true;
+LL |         break true;
    |         ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:45:16
+  --> $DIR/implicit_return.rs:49:13
    |
-45 |     let _ = || true;
-   |                ^^^^ help: add `return` as shown: `return true`
+LL |             break true;
+   |             ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
+
+error: missing return statement
+  --> $DIR/implicit_return.rs:58:13
+   |
+LL |             break true;
+   |             ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
+
+error: missing return statement
+  --> $DIR/implicit_return.rs:67:18
+   |
+LL |     let _ = || { true };
+   |                  ^^^^ help: add `return` as shown: `return true`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:46:16
+  --> $DIR/implicit_return.rs:68:16
    |
-46 |     let _ = || true;
+LL |     let _ = || true;
    |                ^^^^ help: add `return` as shown: `return true`
 
-error: aborting due to 8 previous errors
+error: aborting due to 10 previous errors