Rust.vim RustFmt error: let chains are only allowed in Rust 2024 or later

โš“ Rust    ๐Ÿ“… 2025-10-29    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 8      

surdeus

Warning

This post was published 33 days ago. The information described in this article may have changed.

Asking here in case anyone has a solution since rust.vim seems to no longer be actively maintained (2023, 2024).

I just filed the issue on `RustFmt` error: "let chains are only allowed in Rust 2024 or later" but I'm on 2024 ยท Issue #529 ยท rust-lang/rust.vim ยท GitHub since that's where it belongs, but I wanted to know whether anyone here was aware of a workaround.

Summary of the issue: I have a crate configured as the 2024 edition, but running :RustFmt on a rust file that's using let chains fails with a location list of errors saying:

error: let chains are only allowed in Rust 2024 or later

Does anyone know any workarounds to resolve this issue in vim?

4 posts - 3 participants

Read full topic

๐Ÿท๏ธ Rust_feed