]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/diverging-tuple-parts-39485.stderr
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / diverging-tuple-parts-39485.stderr
index 017b73a0d8611bdd78b1c4c1875aa4effa5af082..32967b376ca9c2b12dae6e9aee6bbbba0d10c90c 100644 (file)
@@ -9,11 +9,12 @@ LL |     &panic!()
 help: try adding a return type
    |
 LL | fn g() -> &_ {
-   |        ^^^^^
+   |        +++++
 help: consider removing the borrow
    |
-LL |     panic!()
-   |    --
+LL -     &panic!()
+LL +     panic!()
+   | 
 
 error[E0308]: mismatched types
   --> $DIR/diverging-tuple-parts-39485.rs:12:5