]> 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 221806f731f60ef4d1337acd6b614cd17de7c706..cf59f42683d721647c54a17bfcf7165d6730b5f0 100644 (file)
@@ -2,7 +2,9 @@ error[E0308]: mismatched types
   --> $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