repr: add a test case for @mut inside another type
This commit is contained in:
parent
2988d3f5c6
commit
ce16644677
@ -621,9 +621,9 @@ fn test_repr() {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user