Why do I get this error only on Windows?

⚓ Rust    📅 2025-06-21    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 53 days ago. The information described in this article may have changed.
Compiling rust\commander ...
error[E0658]: use of unstable library feature `os_str_display`
   --> rust\commander.rs:273:51
    |
273 |              simweb::json_encode(&cur.file_name().display().to_string()),
    |                                                   ^^^^^^^
    |
    = note: see issue #120048 <https://github.com/rust-lang/rust/issues/120048> for more information

I do not get this error on Mac, Linux, and Raspberry Pi Debian. Is it something Windows specific?
Compiler version on Windows is

rustc 1.84.0 (9fc6b4312 2025-01-07)

The compiler on Linux is

rustc 1.89.0-nightly (586ad391f 2025-06-15)

3 posts - 2 participants

Read full topic

🏷️ rust_feed