rust-lang / rust-lang/rust-analyzer
Diagnostic appears only inside function
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 69
Description
rust-analyzer version:2022-06-20
rustc version: 1.61.0
relevant settings:nothing changed
Errors and other diagnostic features appears only 'outside function' like

But if i delete 'qwewqeq' erros doesn't apeears

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the diagnostic behavior with rust-analyzer 2022-06-20 and rustc 1.61.0, using the screenshots as the only provided example. The report names no source file, test, or minimal reproduction, so first identify the diagnostic entry point and add a focused regression test. Done means the reported error appears consistently in the appropriate location rather than only outside a function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100