diff options
Diffstat (limited to 'src/libstd/io/stdio.rs')
| -rw-r--r-- | src/libstd/io/stdio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 34a57884398..96439439e7a 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -411,7 +411,7 @@ mod tests { set_stdout(~w); println!("hello!"); }); - assert_eq!(r.read_to_str().unwrap(), ~"hello!\n"); + assert_eq!(r.read_to_str().unwrap(), "hello!\n".to_owned()); }) iotest!(fn capture_stderr() { |
