]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/explicit_auto_deref.fixed
Auto merge of #99521 - fee1-dead-contrib:const_fix_hax, r=oli-obk
[rust.git] / src / tools / clippy / tests / ui / explicit_auto_deref.fixed
index d4ff1b1566dc613bd50d9c46e1f3c5ccdb4d5b64..a650fdc1f897256ab98026823f52aaeec250c19e 100644 (file)
@@ -211,4 +211,8 @@ fn main() {
     unsafe {
         var(0, &**x);
     }
+
+    let s = &"str";
+    let _ = || return *s;
+    let _ = || -> &'static str { return s };
 }