You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a trait has an associated constant with a default value, when a type implements the trait and omit the associated constant, RA will show error message:
"not all trait item implemented, missing: const XXXX"
while the same code compiles without any problem.
I can't remember exactly, but I think this error starts to show up from yesterday; in previous versions, no error is shown for the exact same code base.
minimal reproducible code:
traitMarker{constFLAG:bool = false;}structFoo;implMarkerforFoo{}// <--- error message shows up here
description
a trait has an associated constant with a default value, when a type implements the trait and omit the associated constant, RA will show error message:
while the same code compiles without any problem.
I can't remember exactly, but I think this error starts to show up from yesterday; in previous versions, no error is shown for the exact same code base.
minimal reproducible code:
screenshot
rust-analyzer version:
using vscode extension preview channel,
rustc version:
rustc 1.76.0-nightly (dd430bc8c 2023-11-14)
relevant settings:
nothing special, just normal installation via rustup and vscode
The text was updated successfully, but these errors were encountered: