rust-lang / rust-mode

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

Wrong indentation around trait bounds for output parameters. #379

Open mookid opened 4 years ago

mookid commented 4 years ago

See #306.

Minimal reproduction:

pub fn f<Req, Resp>() -> MR<
    impl FnMut(ServiceResponse) -> Resp,
>
where
    Req: Send,
    Resp: Send,
{
}

get reindented to

pub fn f<Req, Resp>() -> MR<
    impl FnMut(ServiceResponse) -> Resp,
    >
where
    Req: Send,
Resp: Send,
{
}