]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/ret-non-nil.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / ret-non-nil.stderr
index 01f126bd11ea2d6572611f0bd46ec386b2dba6bc..2029c6d9d81d4e185761eca5b9c6c05b9d0e3106 100644 (file)
@@ -1,8 +1,10 @@
 error[E0069]: `return;` in a function whose return type is not `()`
-  --> $DIR/ret-non-nil.rs:15:19
+  --> $DIR/ret-non-nil.rs:5:19
    |
 LL | fn g() -> isize { return; }
-   |                   ^^^^^^ return type is not ()
+   |           -----   ^^^^^^ return type is not `()`
+   |           |
+   |           expected `isize` because of this return type
 
 error: aborting due to previous error