diff options
Diffstat (limited to 'src/test/run-make/unicode-input')
| -rw-r--r-- | src/test/run-make/unicode-input/span_length.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs index ebf3226334c..a70a1600765 100644 --- a/src/test/run-make/unicode-input/span_length.rs +++ b/src/test/run-make/unicode-input/span_length.rs @@ -95,10 +95,10 @@ fn main() { let expected_span = format!("\n{}^{}\n", repeat(" ").take(offset + 7).collect::<String>(), repeat("~").take(8).collect::<String>()); - assert!(err.contains(expected_span.as_slice())); + assert!(err.contains(&expected_span)); // Second snake is 8 ~s long, with 36 preceding spaces let expected_span = format!("\n{}^{}\n", repeat(" ").take(offset + 36).collect::<String>(), repeat("~").take(8).collect::<String>()); - assert!(err.contains(expected_span.as_slice())); + assert!(err.contains(&expected_span)); } |
