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
|
2024-01-29 12:31:02 -06:00
= help: the trait `std::fmt::Display` is not implemented for `Path`, which is required by `&Path: std::fmt::Display`
2023-10-26 01:20:23 -05:00
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
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`
2023-10-26 01:20:23 -05:00
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
2022-02-21 18:58:12 -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)
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`.