- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
    let path = Path::new("/tmp/foo/bar.txt");
    println!("{}", path);gives
  = note: `std::path::Path` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
  = note: required because of the requirements on the impl of `std::fmt::Display` for `&std::path::Path`
  = note: required by `std::fmt::Display::fmt`
It would be nice if rustc suggested calling display() on the path.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.