diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-49854.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-49854.rs b/src/test/ui/issues/issue-49854.rs new file mode 100644 index 000000000..0e1db00a3 --- /dev/null +++ b/src/test/ui/issues/issue-49854.rs @@ -0,0 +1,9 @@ +// run-pass +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); +} |