]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/wrong-ret-type.stderr
Auto merge of #65421 - estebank:variants, r=petrochenkov
[rust.git] / src / test / ui / wrong-ret-type.stderr
index 4ff6f7076038f042ca73f8ff11fd3c4e69416ef6..cf59f42683d721647c54a17bfcf7165d6730b5f0 100644 (file)
@@ -1,8 +1,10 @@
 error[E0308]: mismatched types
-  --> $DIR/wrong-ret-type.rs:12:49
+  --> $DIR/wrong-ret-type.rs:2:49
    |
 LL | fn mk_int() -> usize { let i: isize = 3; return i; }
-   |                                                 ^ expected usize, found isize
+   |                -----                            ^ expected usize, found isize
+   |                |
+   |                expected `usize` because of return type
 
 error: aborting due to previous error