]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/format.fixed
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / tools / clippy / tests / ui / format.fixed
index d08f8f52495adf56f677098a395f10eb94fd5fca..f4db2d20c713c0b4dc1d83591e6b6eceb00fe7cc 100644 (file)
@@ -84,4 +84,10 @@ fn main() {
     let _ = x.to_string();
     let _ = format!("{x:?}"); // Don't lint on debug
     let _ = x.to_string();
+
+    // Issue #9234
+    let abc = "abc";
+    let _ = abc.to_string();
+    let xx = "xx";
+    let _ = xx.to_string();
 }