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