Skip to content

"no such associated item" in IDE but build succeeds #529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alshdavid opened this issue Jan 8, 2024 · 3 comments
Closed

"no such associated item" in IDE but build succeeds #529

alshdavid opened this issue Jan 8, 2024 · 3 comments

Comments

@alshdavid
Copy link

In VSCode I am getting this error:
image

no such associated itemrust-analyzer[E0599](https://doc.rust-lang.org/stable/error_codes/E0599.html)
sha2
pub type Sha256 = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, U32, OidSha256>> // size = 112 (0x70), align = 0x8

However cargo build succeeds without issue.

$ uname -a
Linux fedora 6.6.8-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 21 04:01:49 UTC 2023 x86_64 GNU/Linux

$ cargo version
cargo 1.75.0 (1d8b05cdd 2023-11-20)

Have I misconfigured something?

@newpavlov
Copy link
Member

Are you using a Nightly toolchain? Try to update it or switch to stable. If it does not help. then I think it's better to ask in the rust-analyzer repository after looking for similar issues.

@alshdavid
Copy link
Author

Appears this can be solved for now with this syntax:

let mut hasher = <Sha256 as Digest>::new();

rust-lang/rust-analyzer#15242

@newpavlov
Copy link
Member

Closing in favor of the rust-analyzer issue. Hopefully, it will be fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants