Variables in const generic blocks have unresolvedReference
as their semantic type
#18236
Labels
C-bug
Category: bug
unresolvedReference
as their semantic type
#18236
rust-analyzer version: 0.4.2133-standalone
rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)
editor or extension: VSCode
relevant settings:
code snippet to reproduce:
Notice how both constant and variable (
![Image](https://private-user-images.githubusercontent.com/23321756/373610494-6e4ea6fd-4a11-4c23-a556-9bed5ca5a1ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTc1MDcsIm5iZiI6MTczOTU1NzIwNywicGF0aCI6Ii8yMzMyMTc1Ni8zNzM2MTA0OTQtNmU0ZWE2ZmQtNGExMS00YzIzLWE1NTYtOWJlZDVjYTVhMWJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE4MjAwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzZmMxNTZmYjcyMjk2ZDMwYWI1ZWFmY2E5NWUzNDA2MDAwNjgzNjM5YmUwNjIxZTU0OTg1MWZkZjAwMjk1ZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4dug800GtiCmOSdSPagsxaewkz8XtEZDk1QA1po9f1c)
a
andA
) semantic types are determined correctly in the function, but not in the const generic block + type hints are not availableThe text was updated successfully, but these errors were encountered: