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