Closed
Description
Steps to reproduce
- Write an
impl
of a trait that has associated type with trait bound (e.g.Deref
) for a custom type.
impl std::ops::Deref for MyType {
// <-- place the text cursor here
}
- Start typing "type" until the autocomplete menu with
type Output =
appears. - Choose
type Output =
and press Enter.
Expected behavior
It generates type Output =
.
Actual behavior
It generates type Output: ?Size =
, which is an invalid syntax for an impl
.
rust-analyzer version: rust-analyzer version: 0.3.1325-standalone
rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)
relevant settings: (eg. client settings, or environment variables like CARGO
, RUSTUP_HOME
or CARGO_HOME
)