2020-09-02 07:40:56 +00:00
error[E0277]: `Path` doesn't implement `std::fmt::Display`
2018-12-13 00:54:27 +00:00
--> $DIR/path-display.rs:5:20
|
LL | println!("{}", path);
2021-03-12 10:48:05 +00:00
| ^^^^ `Path` cannot be formatted with the default formatter; call `.display()` on it
2018-12-13 00:54:27 +00:00
|
2020-09-02 07:40:56 +00:00
= help: the trait `std::fmt::Display` is not implemented for `Path`
2021-03-12 10:48:05 +00:00
= note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
2022-06-21 02:25:52 +00: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-13 00:54:27 +00:00
2022-02-22 00:58:12 +00: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-21 02:25:52 +00: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-22 00:58:12 +00:00
error: aborting due to 2 previous errors
2018-12-13 00:54:27 +00:00
For more information about this error, try `rustc --explain E0277`.