rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

Bad identation of “for“ trait bounds #443

Open Chris00 opened 2 years ago

Chris00 commented 2 years ago

At the moment, the code is indented as

fn f<T>(v: &T)
where
    T: Zero,
for <'a> &'a T: <Output=&'a T>

while the correct indentation is

fn f<T>(v: &T)
where
    T: Zero,
    for <'a> &'a T: <Output=&'a T>

(It does not happen if “for“ is on the first line.)