]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-37665.rs
Rollup merge of #106752 - sulami:master, r=estebank
[rust.git] / tests / ui / issues / issue-37665.rs
1 // compile-flags: -Z unpretty=mir
2
3 use std::path::MAIN_SEPARATOR;
4
5 fn main() {
6     let mut foo : String = "hello".to_string();
7     foo.push(MAIN_SEPARATOR);
8     println!("{}", foo);
9     let x: () = 0; //~ ERROR: mismatched types
10 }