summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-90101.rs
blob: 1954ee6f1e7ceabfd8a6f9993f23cc176f733a0f (plain)
1
2
3
4
5
6
7
8
use std::path::{Path, PathBuf};

fn func(path: impl Into<PathBuf>, code: impl Into<String>) {}

fn main() {
    func(Path::new("hello").to_path_buf().to_string_lossy(), "world")
    //~^ ERROR [E0277]
}