summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-49854.rs
blob: 0e1db00a34ce9664098cc2a0163582057aa45b7f (plain)
1
2
3
4
5
6
7
8
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);
}