Skip to content
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

Wrong unexpected token diagnostic when passing negative numbers to concat! #19417

Open
vdrn opened this issue Mar 22, 2025 · 1 comment · May be fixed by #19434
Open

Wrong unexpected token diagnostic when passing negative numbers to concat! #19417

vdrn opened this issue Mar 22, 2025 · 1 comment · May be fixed by #19434
Assignees
Labels
A-macro macro expansion C-bug Category: bug

Comments

@vdrn
Copy link

vdrn commented Mar 22, 2025

This code compiles fine with rustc, but rust analyzer reports error: unexpected token

 pub const T: &str = concat!(-42.0); 

rust-analyzer version: 1.87.0-nightly (be73c1f 2025-03-21)

rustc version: rustc 1.87.0-nightly (be73c1f46 2025-03-21)

@vishruth-thimmaiah
Copy link
Contributor

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants