We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to introduce a constant (#4985) to a global file scope results in a wild use crate::X and an error:
use crate::X
fn main() { println!("{}", 1 + 1); }
... call "Introduce Constant" on 1 + 1
1 + 1
use crate::I; const I: i32 = 1 + 1; fn main() { println!("{}", I); }
The text was updated successfully, but these errors were encountered:
Merge #5379
bfc03cc
5379: REF: fix auto-import in introduce constant refactoring r=vlad20012 a=Kobzol Fixes: #5377 Co-authored-by: Jakub Beránek <berykubik@gmail.com>
8f4962a
Kobzol
Successfully merging a pull request may close this issue.
Environment
Problem description
Trying to introduce a constant (#4985) to a global file scope results in a wild
use crate::Xand an error:Steps to reproduce
... call "Introduce Constant" on
1 + 1The text was updated successfully, but these errors were encountered: