]> 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 bba8d942e27dfa6ed1ff66c9b3fd22da361d3024..4c62a7d65c6dea924f8ed2a6238a0ad1a670aaa4 100644 (file)
@@ -1,46 +1,64 @@
 error: missing return statement
-  --> $DIR/implicit_return.rs:21:5
+  --> $DIR/implicit_return.rs:17:5
    |
-21 |     true
+LL |     true
    |     ^^^^ help: add `return` as shown: `return true`
    |
    = note: `-D clippy::implicit-return` implied by `-D warnings`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:27:9
+  --> $DIR/implicit_return.rs:23:9
    |
-27 |         true
+LL |         true
    |         ^^^^ help: add `return` as shown: `return true`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:29:9
+  --> $DIR/implicit_return.rs:25:9
    |
-29 |         false
+LL |         false
    |         ^^^^^ help: add `return` as shown: `return false`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:36:17
+  --> $DIR/implicit_return.rs:33:17
    |
-36 |         true => false,
+LL |         true => false,
    |                 ^^^^^ help: add `return` as shown: `return false`
 
 error: missing return statement
-  --> $DIR/implicit_return.rs:38:13
+  --> $DIR/implicit_return.rs:34:20
    |
-38 |             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:52:9
+  --> $DIR/implicit_return.rs:41:9
    |
-52 |         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:49:13
+   |
+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:54:16
+  --> $DIR/implicit_return.rs:68:16
    |
-54 |     let _ = || true;
+LL |     let _ = || true;
    |                ^^^^ help: add `return` as shown: `return true`
 
-error: aborting due to 7 previous errors
+error: aborting due to 10 previous errors