]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-90101.rs
Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwco
[rust.git] / tests / 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 }