Implement missing members introduces a \
before the curly braces of functions of a traitΒ #16607
Closed
Description
rust-analyzer version: rust-analyzer version: 0.3.1850-standalone in VSCode
rustc version: rustc 1.78.0-nightly (2bf78d12d 2024-02-18)
relevant settings: nothing notable
/// A trait for types representing distributions.
pub trait Distribution: seal::Sealed + Copy {
fn required_bytes_count_for_safe_generation<Scalar>(&self) -> usize;
}
impl Distribution for Uniform {
// Cursor is HERE
}
Quick fix tooltip (ctrl + ;
in my case) -> implement missing members
gets me
fn required_bytes_count_for_safe_generation<Scalar>(&self) -> usize \{
todo!()
\}
which the compiler (and rust analyzer) obviously don't like
expected:
fn required_bytes_count_for_safe_generation<Scalar>(&self) -> usize {
todo!()
}
Cheers