]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/explicit_auto_deref.stderr
Fix ICE in `dereference.rs`
[rust.git] / tests / ui / explicit_auto_deref.stderr
index 55f956e37aed77fb51d97e222658614a9e2ccff6..92765307ea73d55f30a30ecdbc984ba42a645066 100644 (file)
@@ -192,5 +192,11 @@ error: deref which would be done by auto-deref
 LL |     f_str(&&**ref_str); // `needless_borrow` will suggest removing only one reference
    |            ^^^^^^^^^^ help: try this: `ref_str`
 
-error: aborting due to 32 previous errors
+error: deref which would be done by auto-deref
+  --> $DIR/explicit_auto_deref.rs:217:41
+   |
+LL |     let _ = || -> &'static str { return *s };
+   |                                         ^^ help: try this: `s`
+
+error: aborting due to 33 previous errors