]> git.lizzy.rs Git - rust.git/commitdiff
repr: add a test case for @mut inside another type
authorDaniel Micay <danielmicay@gmail.com>
Wed, 17 Jul 2013 23:13:34 +0000 (19:13 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Thu, 18 Jul 2013 04:15:20 +0000 (00:15 -0400)
src/libstd/repr.rs

index 4df2ace1056a5184e09e8344f3655d3db99a6e16..0aeff2b0b778c25d244242a1b066e2d112d3472a 100644 (file)
@@ -621,9 +621,9 @@ fn exact_test<T>(t: &T, e:&str) {
     exact_test(&(@"hello"), "@\"hello\"");
     exact_test(&(~"he\u10f3llo"), "~\"he\\u10f3llo\"");
 
-    // FIXME #4210: the mut fields are a bit off here.
     exact_test(&(@10), "@10");
-    exact_test(&(@mut 10), "@10");
+    exact_test(&(@mut 10), "@10"); // FIXME: #4210: incorrect
+    exact_test(&((@mut 10, 2)), "(@mut 10, 2)");
     exact_test(&(~10), "~10");
     exact_test(&(&10), "&10");
     let mut x = 10;