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

could not resolve macro $crate::format #6773

Closed
xdb64 opened this issue Dec 9, 2020 · 1 comment
Closed

could not resolve macro $crate::format #6773

xdb64 opened this issue Dec 9, 2020 · 1 comment

Comments

@xdb64
Copy link

xdb64 commented Dec 9, 2020

Rust analyzer complains about using format! directly here with the error:

could not resolve macro $crate::formatrust-analyzermacro-error�
However, the program compiles with no problems.

Referring to format! as std::format! resolves the issue.

@lnicola
Copy link
Member

lnicola commented Dec 9, 2020

Duplicate of #6716.

This is fixed on master and available in the nightly builds.

image

@lnicola lnicola closed this as completed Dec 9, 2020
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