]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-37665.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-37665.rs
1 // compile-flags: -Z unpretty=mir
2 // ignore-cloudabi no std::path
3
4 use std::path::MAIN_SEPARATOR;
5
6 fn main() {
7     let mut foo : String = "hello".to_string();
8     foo.push(MAIN_SEPARATOR);
9     println!("{}", foo);
10     let x: () = 0; //~ ERROR: mismatched types
11 }