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
Sample code:
fn main() { // Error: you are missing an argument println!("My name is {0}, {1} {0}", "Bond"); }
error message:
me, ~/workspace/rust/byexample.rs » rustc scratchpad.rs scratchpad.rs:13:14: 13:39 error: invalid reference to argument `1` (there are 1 arguments) scratchpad.rs:13 println!("My name is {0}, {1} {0}", "Bond"); ^~~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error
This should say "there is 1 argument" instead.
originally reported here: http://www.reddit.com/r/rust/comments/2b0mw8/error_message_in_format_args/
The text was updated successfully, but these errors were encountered:
I can take this.
Sorry, something went wrong.
auto merge of #15785 : treeman/rust/fix-15780, r=alexcrichton
4f55b52
Fix for #15780.
This can be closed.
Thanks!
Auto merge of rust-lang#15780 - Young-Flash:auto_import, r=lnicola
2f6961a
fix: import trait if needed for `unqualify_method_call` assist before:  after:  follow up rust-lang/rust-analyzer#13825
No branches or pull requests
Sample code:
error message:
This should say "there is 1 argument" instead.
originally reported here: http://www.reddit.com/r/rust/comments/2b0mw8/error_message_in_format_args/
The text was updated successfully, but these errors were encountered: