diff options
| author | Gabriel Majeri <gabriel.majeri6@gmail.com> | 2018-06-05 08:50:06 +0300 |
|---|---|---|
| committer | Gabriel Majeri <gabriel.majeri6@gmail.com> | 2018-06-29 14:50:00 +0300 |
| commit | fbd3c92a885b02a5397eaf65d36beae8e1ed999c (patch) | |
| tree | f0074c3230c8e83521b2fe60b7f22becf68e8f25 | |
| parent | fdcee4da79a61028bc7d32a74648b913e924545a (diff) | |
| download | rust-fbd3c92a885b02a5397eaf65d36beae8e1ed999c.tar.gz rust-fbd3c92a885b02a5397eaf65d36beae8e1ed999c.zip | |
Add run-pass test
| -rw-r--r-- | src/test/run-pass/issue-49854.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-49854.rs b/src/test/run-pass/issue-49854.rs new file mode 100644 index 00000000000..5bb80b5e2c6 --- /dev/null +++ b/src/test/run-pass/issue-49854.rs @@ -0,0 +1,18 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +use std::ffi::OsString; + +fn main() { + let os_str = OsString::from("Hello Rust!"); + + assert_eq!(os_str, "Hello Rust!"); + assert_eq!("Hello Rust!", os_str); +} |
