summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/path-display.rs
blob: 3a022e6b02fa4d648124f69478ad7d7d09bd79d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::path::{Path, PathBuf};

fn main() {
    let path = Path::new("/tmp/foo/bar.txt");
    println!("{}", path);
    //~^ ERROR E0277

    let path = PathBuf::from("/tmp/foo/bar.txt");
    println!("{}", path);
    //~^ ERROR E0277
}