]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/did_you_mean/issue-39544.rs
Rollup merge of #41135 - japaric:unstable-docs, r=steveklabnik
[rust.git] / src / test / ui / did_you_mean / issue-39544.rs
index 6331fc5771fcbb218694944e4034efe72e3cdad3..d7c8935560623118722a329e82234d7b59a97332 100644 (file)
@@ -51,3 +51,9 @@ pub fn with_arg(z: Z, w: &Z) {
     let _ = &mut z.x;
     let _ = &mut w.x;
 }
+
+pub fn with_tuple() {
+    let mut y = 0;
+    let x = (&y,);
+    *x.0 = 1;
+}