Skip to content

Commit ce16644

Browse files
committed
repr: add a test case for @mut inside another type
1 parent 2988d3f commit ce16644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/repr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ fn test_repr() {
621621
exact_test(&(@"hello"), "@\"hello\"");
622622
exact_test(&(~"he\u10f3llo"), "~\"he\\u10f3llo\"");
623623

624-
// FIXME #4210: the mut fields are a bit off here.
625624
exact_test(&(@10), "@10");
626-
exact_test(&(@mut 10), "@10");
625+
exact_test(&(@mut 10), "@10"); // FIXME: #4210: incorrect
626+
exact_test(&((@mut 10, 2)), "(@mut 10, 2)");
627627
exact_test(&(~10), "~10");
628628
exact_test(&(&10), "&10");
629629
let mut x = 10;

0 commit comments

Comments
 (0)