]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-90101.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / typeck / issue-90101.rs
1 use std::path::{Path, PathBuf};
2
3 fn func(path: impl Into<PathBuf>, code: impl Into<String>) {}
4
5 fn main() {
6     func(Path::new("hello").to_path_buf().to_string_lossy(), "world")
7     //~^ ERROR [E0277]
8 }