2020-09-02 02:40:56 -05:00
error[E0277]: `Path` doesn't implement `std::fmt::Display`
2018-12-12 18:54:27 -06:00
--> $DIR/path-display.rs:5:20
|
LL | println!("{}", path);
2021-03-12 04:48:05 -06:00
| ^^^^ `Path` cannot be formatted with the default formatter; call `.display()` on it
2018-12-12 18:54:27 -06:00
|
2020-09-02 02:40:56 -05:00
= help: the trait `std::fmt::Display` is not implemented for `Path`
2021-03-12 04:48:05 -06:00
= note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
2022-06-20 21:25:52 -05:00
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-12-12 18:54:27 -06:00
2022-02-21 18:58:12 -06:00
error[E0277]: `PathBuf` doesn't implement `std::fmt::Display`
--> $DIR/path-display.rs:9:20
|
LL | println!("{}", path);
| ^^^^ `PathBuf` cannot be formatted with the default formatter; call `.display()` on it
|
= help: the trait `std::fmt::Display` is not implemented for `PathBuf`
= note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
2022-06-20 21:25:52 -05:00
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-02-21 18:58:12 -06:00
error: aborting due to 2 previous errors
2018-12-12 18:54:27 -06:00
For more information about this error, try `rustc --explain E0277`.